/PHP-7.3/ext/standard/tests/general_functions/ |
H A D | intval_binary_prefix.phpt | 35 foreach ($goodInputs as $input) { 37 intval($input, 0) 43 foreach ($goodInputs as $input) { 45 intval($input, 2) 51 foreach ($goodInputs as $input) { 53 intval($input) 59 foreach ($badInputs as $input) { 61 intval($input, 0)
|
/PHP-7.3/ext/standard/tests/array/ |
H A D | array_filter_variation8.phpt | 17 $input = array(0, 1, -1, 10, 100, 1000, 'Hello', null, true); 21 function callback1($input) 26 var_dump( array_filter($input, 'callback1') ); 29 function callback2($input) 34 var_dump( array_filter($input, 'callback2') ); 37 function callback3($input) 42 var_dump( array_filter($input, 'callback3') ); 45 function callback4($input) 50 var_dump( array_filter($input, 'callback4') ); 53 function callback5($input) [all …]
|
H A D | array_sum_variation6.phpt | 5 /* Prototype : mixed array_sum(array $input) 11 * Testing array_sum() with associative array as 'input' argument 17 $input = array(0 => 1, 1 => 10, 2 => 0, 3 => -2, 4 => 23.56); 19 var_dump( array_sum($input) ); 22 $input = array('a' => 20, "b" => 50, 'c' => 0, 'd' => -30, "e" => 100); 24 var_dump( array_sum($input) );
|
H A D | array_unique_variation6.phpt | 5 /* Prototype : array array_unique(array $input) 15 echo "*** Testing array_unique() : array with reference variables for \$input argument ***\n"; 22 // input array containing elements as reference variables 23 $input = array( 32 var_dump( array_unique($input, SORT_STRING) ); 37 *** Testing array_unique() : array with reference variables for $input argument ***
|
H A D | array_rand_basic2.phpt | 2 Test array_rand() function : basic functionality - with associative array for 'input' argument 5 /* Prototype : mixed array_rand(array $input [, int $num_req]) 11 * Test array_rand() when associative array is passed to 'input' argument 17 // Initialise the 'input' and 'num_req' variables 18 $input = array( 28 var_dump( array_rand($input,$num_req) ); 32 var_dump( array_rand($input) );
|
H A D | array_pad_variation4.phpt | 5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value) 6 * Description: Returns a copy of input array padded with pad_value to size pad_size 13 * The $input and $pad_size arguments passed are fixed values. 18 // initialize the $input and $pad_size argument 19 $input = array(1, 2, 3); 25 var_dump( array_pad($input, $pad_size, $binary) ); // positive 'pad_size' 26 var_dump( array_pad($input, -$pad_size, $binary) ); // negative 'pad_size'
|
H A D | array_rand_variation5.phpt | 5 /* Prototype : mixed array_rand(array $input [, int $num_req]) 12 * various invalid values are passed to the 'input' and 'req_num' 19 $input = array( 29 var_dump( array_rand($input) ); // with default $num_req value 31 var_dump( array_rand($input, 1) ); // with valid $num_req value 35 var_dump( array_rand($input, 0) ); // with $num_req=0 37 var_dump( array_rand($input, -1) ); // with $num_req=-1 39 var_dump( array_rand($input, -2) ); // with $num_req=-2 40 echo"\n-- With num_req more than number of members in 'input' array --\n"; 41 var_dump( array_rand($input, 13) ); // with $num_req=13 [all …]
|
H A D | array_rand_variation6.phpt | 2 Test array_rand() function : usage variation - with heredoc string as key in the 'input' array 5 /* Prototype : mixed array_rand(array $input [, int $num_req]) 11 * Test behaviour of array_rand() when keys of the 'input' array is heredoc string 14 echo "*** Testing array_rand() : with keys of input array as heredoc strings ***\n"; 44 $input = array( 55 var_dump( array_rand($input) ); 58 var_dump( array_rand($input, 1) ); 61 var_dump( array_rand($input, 3) ); 64 var_dump( array_rand($input, 6) ); 70 \*\*\* Testing array_rand\(\) : with keys of input array as heredoc strings \*\*\*
|
H A D | array_filter_error.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 16 $input = array(0, 1, 2, 3, 5); 18 * Prototype : bool odd(array $input) 19 * Parameters : $input - array for which each elements should be checked into the function 21 * Description : Function takes array as input and checks for its each elements. 23 function odd($input) 25 return ($input % 2 != 0); 31 var_dump( array_filter($input, "odd", $extra_arg, $extra_arg) ); 35 var_dump( array_filter($input, "even") );
|
H A D | array_sum_variation5.phpt | 5 /* Prototype : mixed array_sum(array $input) 11 * Testing array_sum() with 'input' having reference variables as elements 21 // input array containing elements as reference variables 22 $input = array( 30 var_dump( array_sum($input) );
|
H A D | array_walk_object1.phpt | 5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata]) 11 * Pasing object in place of 'input' argument to test object functionatlity 18 * Parameters : $value - values in given input array 19 * $key - keys in given input array 45 // object for 'input' argument 46 $input = new MyClass(10); 48 var_dump( array_walk($input, "callback", 1));
|
H A D | array_walk_recursive_object1.phpt | 5 /* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata]) 10 /* Passing object in place of an 'input' argument to test object functionality 16 * Parameters : $value - values in given input array 17 * $key - keys in given input array 43 // object for 'input' argument 44 $input = new MyClass(10); 46 var_dump( array_walk_recursive($input, "callback", 1));
|
H A D | array_unique_variation5.phpt | 5 /* Prototype : array array_unique(array $input) 15 echo "*** Testing array_unique() : array with duplicate keys for \$input argument ***\n"; 18 $input = array( 1 => "one", 2 => "two", 2 => "2", 3 => "three", 1 => "1", "1", "2"); 19 var_dump( array_unique($input) ); 24 *** Testing array_unique() : array with duplicate keys for $input argument ***
|
H A D | array_unique_variation7.phpt | 5 /* Prototype : array array_unique(array $input) 14 echo "*** Testing array_unique() : array with binary data for \$input argument ***\n"; 17 $input = array( b"1", b"hello", "world", "str1" => "hello", "str2" => "world"); 19 var_dump( array_unique($input) ); 24 *** Testing array_unique() : array with binary data for $input argument ***
|
H A D | array_filter_variation4.phpt | 5 /* Prototype : array array_filter(array $input [, callback $callback]) 21 $input = array(0, -1, 2, 3.4E-3, 'hello', "value", "key" => 4, 'null' => NULL); 29 var_dump( array_filter($input, "callback1") ); 32 function callback2($input) 36 var_dump( array_filter($input, "callback2") ); 44 var_dump( array_filter($input, "callback3") ); 47 function callback4($input) 49 if($input > 0 ) { 57 var_dump( array_filter($input, "callback4") );
|
H A D | array_rand_basic1.phpt | 5 /* Prototype : mixed array_rand(array $input [, int $num_req]) 11 * Test array_rand() when array with default keys is passed to 'input' argument 17 // Initialise the 'input' and 'num_req' variables 18 $input = array(10, 20, 30, 40, 50, 60, 70); 23 var_dump( array_rand($input,$num_req) ); 27 var_dump( array_rand($input) );
|
/PHP-7.3/sapi/phpdbg/tests/ |
H A D | stdin_001.phpt | 2 Test stdin input with breakpoints 15 prompt> [Successful compilation of stdin input] 16 prompt> [Breakpoint #0 added at Standard input code:3] 17 prompt> [Breakpoint #0 at Standard input code:3, hits: 1] 22 prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
|
/PHP-7.3/ext/standard/tests/strings/ |
H A D | add-and-stripslashes.phpt | 6 $input = ''; 8 $input .= chr($i%256); 12 if($input === stripslashes(addslashes($input))) {
|
/PHP-7.3/ext/standard/ |
H A D | php_fopen_wrapper.c | 80 php_stream_input_t *input = stream->abstract; in php_stream_input_read() local 88 php_stream_seek(input->body, 0, SEEK_END); in php_stream_input_read() 93 if (!input->body->readfilters.head) { in php_stream_input_read() 96 php_stream_seek(input->body, input->position, SEEK_SET); in php_stream_input_read() 103 input->position += read; in php_stream_input_read() 127 php_stream_input_t *input = stream->abstract; in php_stream_input_seek() local 129 if (input->body) { in php_stream_input_seek() 131 *newoffset = input->position = (input->body)->position; in php_stream_input_seek() 220 php_stream_input_t *input; in php_stream_url_wrap_php() local 229 input = ecalloc(1, sizeof(*input)); in php_stream_url_wrap_php() [all …]
|
/PHP-7.3/ext/spl/tests/ |
H A D | heap_005.phpt | 2 SPL: SplMinHeap: large unordered input iterated 5 $input = range(1,100); 6 shuffle($input); 10 foreach($input as $i) {
|
H A D | heap_006.phpt | 2 SPL: SplMaxHeap: large unordered input iterated 5 $input = range(1,100); 6 shuffle($input); 10 foreach($input as $i) {
|
/PHP-7.3/ext/session/tests/ |
H A D | 021.phpt | 11 url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset=" 33 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form="); 42 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry"); 51 ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src"); 63 <form action="//php.net/do.php"><input type="hidden" name="PHPSESSID" value="abtest" /> 65 <form action="../do.php"><input type="hidden" name="PHPSESSID" value="abtest" /> 67 <form action="/do.php"><input type="hidden" name="PHPSESSID" value="abtest" /> 69 <form action="/foo/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
|
H A D | session_basic5.phpt | 124 <input type="text" name="test1"></input> 128 <input type="text" name="test1"></input> 132 <input type="text" name="test1"></input> 136 <input type="text" name="test1"></input> 140 <input type="text" name="test1"></input> 144 <input type="text" name="test1"></input> 148 <input type="text" name="test1"></input> 205 <input type="text" name="test1"></input> 209 <input type="text" name="test1"></input> 213 <input type="text" name="test1"></input> [all …]
|
/PHP-7.3/ext/hash/ |
H A D | hash_fnv.c | 78 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV132Update() argument 81 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update() 84 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV1a32Update() argument 87 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update() 113 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV164Update() argument 116 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update() 119 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV1a64Update() argument 122 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
|
/PHP-7.3/ext/mbstring/ucgendat/ |
H A D | uctest.php | 20 function parseDataFile(string $input) { argument 21 $lines = explode("\n", $input); 68 function testUnicodeData(string $input) { argument 72 foreach (parseDataFile($input) as $fields) { 96 function testCaseFolding(string $input) { argument 97 foreach (parseDataFile($input) as $fields) { 112 function testSpecialCasing(string $input) { argument 113 foreach (parseDataFile($input) as $fields) {
|