/PHP-5.4/ext/interbase/tests/ |
H A D | interbase.inc | 73 rand()%12+1, rand()%28+1, rand()%100+1910, 74 rand()%24, rand()%60, rand()%60); 80 $len = rand() % $max_len; 83 $s .= sprintf("%c", rand() % 256); 90 $len = rand() % $max_len; 101 $n = substr(rand() . rand(), 0, rand() % $len + 1); 103 $n .= "." . substr(rand(), 0, rand() % ($len - strlen($n)) + 1); 106 $n = substr(rand() . rand(), 0, rand() % $len + 1); 108 $n = substr(rand() . rand(), 0, 1); 111 $n = substr(rand() . rand(), 0, rand() % ($len - $prec) + 1); [all …]
|
/PHP-5.4/ext/standard/tests/math/ |
H A D | rand_error.phpt | 2 Test rand() - wrong params test rand() 5 rand(25); 6 rand(10,100,false); 7 rand("one", 100); 8 rand(1, "hundered"); 12 Warning: rand() expects exactly 2 parameters, 1 given in %s on line 2 14 Warning: rand() expects exactly 2 parameters, 3 given in %s on line 3 16 Warning: rand() expects parameter 1 to be long, string given in %s on line 4 18 Warning: rand() expects parameter 2 to be long, string given in %s on line 5
|
H A D | rand_variation1.phpt | 2 Test rand() function : usage variations - different data types as $min argument 5 /* Prototype : int rand ([ int $min , int $max ] ) 7 * Source code: ext/standard/rand.c 10 echo "*** Testing rand() : usage variations ***\n"; 78 // loop through each element of $inputs to check the behaviour of rand() 82 var_dump(rand($input, 100)); 89 *** Testing rand() : usage variations *** 141 Warning: rand() expects parameter 1 to be long, string given in %s on line %d 146 Warning: rand() expects parameter 1 to be long, string given in %s on line %d 151 Warning: rand() expects parameter 1 to be long, array given in %s on line %d [all …]
|
H A D | rand_variation2.phpt | 2 Test rand() function : usage variations - different data types as $max argument 5 /* Prototype : int rand ([ int $min , int $max ] ) 7 * Source code: ext/standard/rand.c 10 echo "*** Testing rand) : usage variations ***\n"; 78 // loop through each element of $inputs to check the behaviour of rand() 82 var_dump(rand(100, $input)); 89 *** Testing rand) : usage variations *** 141 Warning: rand() expects parameter 2 to be long, string given in %s on line %d 146 Warning: rand() expects parameter 2 to be long, string given in %s on line %d 151 Warning: rand() expects parameter 2 to be long, array given in %s on line %d [all …]
|
H A D | rand_basic.phpt | 2 Test rand() - basic function test rand() 9 $res = rand(); 41 $res = rand($min[$x], $max[$x]); 71 $res = rand($min[$x], 100); 86 rand() tests with default min and max value (i.e 0 thru %i) 89 rand() tests with defined min and max value
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | rand.phpt | 2 rand() and mt_rand() tests 11 var_dump(rand()); 12 var_dump(rand(-1)); 13 var_dump(rand(-1,1)); 14 var_dump(rand(0,3)); 41 Warning: rand() expects exactly 2 parameters, 1 given in %s on line %d
|
/PHP-5.4/ext/sockets/tests/ |
H A D | socket_create_listen_used.phpt | 14 $rand = rand(1,999); 16 $s_c_l = socket_create_listen(31330+$rand); 19 $s_c_l2 = socket_create_listen(31330+$rand);
|
H A D | socket_set_nonblock.phpt | 14 $rand = rand(1,999); 15 $s_c_l = socket_create_listen(31330+$rand);
|
H A D | socket_connect_params.phpt | 14 $rand = rand(1,999); 15 $s_c = socket_create_listen(31330+$rand); 20 $s_w = socket_connect($s_c, '0.0.0.0', 31330+$rand);
|
H A D | socket_getsockname.phpt | 14 $rand = rand(1,999); 16 $s_bind = socket_bind($s_c, '0.0.0.0', 31330+$rand);
|
H A D | socket_bind_params.phpt | 14 $rand = rand(1,999); 15 $s_c = socket_create_listen(31330+$rand);
|
H A D | socket_getpeername.phpt | 14 $rand = rand(1,999); 16 $s_bind = socket_bind($s_c, '0.0.0.0', 31330+$rand);
|
H A D | socket_read_params.phpt | 14 $rand = rand(1,999); 18 $s_c_l = socket_create_listen(31330+$rand);
|
H A D | socket_write_params.phpt | 14 $rand = rand(1,999); 17 $s_c = socket_create_listen(31330+$rand);
|
H A D | socket_bind.phpt | 17 $rand = rand(1,999); 19 $s_bind = socket_bind($s_c, '0.0.0.0', 31330+$rand);
|
H A D | socket_create_listen_params.phpt | 14 $rand = rand(1,999);
|
/PHP-5.4/ext/pdo/ |
H A D | pdo.php | 17 $the_name = "foo" . rand(); 18 $the_value = "bar" . rand();
|
/PHP-5.4/ext/pdo_pgsql/tests/ |
H A D | bug62479.phpt | 17 $user = 'pdo_test_'.rand(5, 400); 43 $rand = rand(5, 400); 44 $user = "pdo_test_$rand";
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | fread_socket_variation1.phpt | 7 $port = rand(10000, 65000);
|
/PHP-5.4/ext/date/tests/ |
H A D | format-negative-timestamp.phpt | 12 $new_tm = rand(1, $max);
|
/PHP-5.4/ext/standard/tests/network/ |
H A D | socket_get_status_basic.phpt | 7 $port = rand(10000, 65000);
|
H A D | tcp4loop.phpt | 7 $port = rand(10000, 65000);
|
/PHP-5.4/ext/fileinfo/tests/ |
H A D | bug68819_002.phpt | 15 $string .= str_repeat(chr(rand(32, 127)), 8184);
|
/PHP-5.4/ext/zlib/tests/ |
H A D | bug_34821.phpt | 22 $s .= chr(rand(0,255));
|
/PHP-5.4/ext/standard/ |
H A D | rand.c | 78 ret = rand(); in php_rand() 289 PHP_FUNCTION(rand) in PHP_FUNCTION() argument
|