/PHP-7.0/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-7.0/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 integer, string given in %s on line 4 18 Warning: rand() expects parameter 2 to be integer, 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 7 /* Prototype : int rand ([ int $min , int $max ] ) 9 * Source code: ext/standard/rand.c 12 echo "*** Testing rand() : usage variations ***\n"; 80 // loop through each element of $inputs to check the behaviour of rand() 84 var_dump(rand($input, 100)); 91 *** Testing rand() : usage variations *** 116 Warning: rand() expects parameter 1 to be integer, float given in %s on line %d 145 Warning: rand() expects parameter 1 to be integer, string given in %s on line %d 150 Warning: rand() expects parameter 1 to be integer, string 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 7 /* Prototype : int rand ([ int $min , int $max ] ) 9 * Source code: ext/standard/rand.c 12 echo "*** Testing rand) : usage variations ***\n"; 80 // loop through each element of $inputs to check the behaviour of rand() 84 var_dump(rand(100, $input)); 91 *** Testing rand) : usage variations *** 116 Warning: rand() expects parameter 2 to be integer, float given in %s on line %d 145 Warning: rand() expects parameter 2 to be integer, string given in %s on line %d 150 Warning: rand() expects parameter 2 to be integer, string 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]); 69 $res = rand($min[$x], 100); 84 rand() tests with default min and max value (i.e 0 thru %i) 87 rand() tests with defined min and max value
|
/PHP-7.0/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-7.0/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_bind.phpt | 17 $rand = rand(1,999); 19 $s_bind = socket_bind($s_c, '0.0.0.0', 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_create_listen_params.phpt | 14 $rand = rand(1,999);
|
/PHP-7.0/ext/intl/tests/ |
H A D | bug71020.phpt | 10 …$myarray[substr(md5(microtime()),rand(0,26),9) . strval($x)]= substr(md5(microtime()),rand(0,26),9…
|
/PHP-7.0/ext/pdo_pgsql/tests/ |
H A D | bug69362.phpt | 17 $user = 'pdo_test_'.rand(5, 400); 43 $rand = rand(5, 400); 44 $user = "pdo_test_$rand";
|
H A D | bug62479.phpt | 17 $user = 'pdo_test_'.rand(5, 400); 43 $rand = rand(5, 400); 44 $user = "pdo_test_$rand";
|
/PHP-7.0/ext/pdo/ |
H A D | pdo.php | 17 $the_name = "foo" . rand(); 18 $the_value = "bar" . rand();
|
/PHP-7.0/Zend/tests/anon/ |
H A D | 005.phpt | 26 rand(1, 100), 27 rand(2, 200)
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | fread_socket_variation1.phpt | 7 $port = rand(10000, 65000);
|
/PHP-7.0/ext/date/tests/ |
H A D | format-negative-timestamp.phpt | 12 $new_tm = rand(1, $max);
|
/PHP-7.0/ext/standard/tests/network/ |
H A D | socket_get_status_basic.phpt | 7 $port = rand(10000, 65000);
|
/PHP-7.0/ext/standard/ |
H A D | rand.c | 78 ret = rand(); in php_rand() 289 PHP_FUNCTION(rand) in PHP_FUNCTION() argument
|