Home
last modified time | relevance | path

Searched refs:input (Results 26 – 50 of 650) sorted by relevance

12345678910>>...26

/php-src/ext/standard/tests/array/
H A Darray_sum_basic.phpt8 $input = array(1, 2, 3, 4, 5);
10 var_dump( array_sum($input) );
13 $input = array(1.0, 2.2, 3.4, 4.6);
15 var_dump( array_sum($input) );
18 $input = array(1, 2.3, 4, 0.6, 10);
20 var_dump( array_sum($input) );
H A Darray_change_key_case_variation6.phpt11 $input = array('English' => array('one' => 1, 'two' => 2, 'three' => 3),
15 echo "\n-- Pass a two-dimensional array as \$input argument --\n";
16 var_dump(array_change_key_case($input, CASE_UPPER));
18 echo "\n-- Pass a sub-array as \$input argument --\n";
19 var_dump(array_change_key_case($input['English'], CASE_UPPER));
26 -- Pass a two-dimensional array as $input argument --
57 -- Pass a sub-array as $input argument --
H A Darray_values_variation4.phpt7 * 1. Passed a two-dimensional array as $input argument
8 * 2. Passed a sub-array as $input argument
14 $input = array ('zero' => 'zero', 'un' => 'one', 'sub' => array (1, 2, 3));
17 var_dump(array_values($input));
20 var_dump(array_values($input['sub']));
23 $input[] = &$input;
25 var_dump(array_values($input));
H A Darray_values_variation7.phpt7 * and is not dependent on the \$input argument's keys
13 $input = array(3 => 'three', 2 => 'two', 1 => 'one', 0 => 'zero');
15 echo "\n-- \$input argument: --\n";
16 var_dump($input);
19 var_dump(array_values($input));
26 -- $input argument: --
H A Darray_sum_variation6.phpt6 * Testing array_sum() with associative array as 'input' argument
12 $input = array(0 => 1, 1 => 10, 2 => 0, 3 => -2, 4 => 23.56);
14 var_dump( array_sum($input) );
17 $input = array('a' => 20, "b" => 50, 'c' => 0, 'd' => -30, "e" => 100);
19 var_dump( array_sum($input) );
H A Darray_filter_variation7.phpt11 $input = array(0, 1, -1, 10, 100, 1000, 'Hello', null);
15 var_dump( array_filter($input, function($input) { return ($input > 1); }) );
19 var_dump( array_filter($input, function() { return true; }) );
23 var_dump( array_filter($input, function($input) { }) );
H A Darray_unique_variation6.phpt10 echo "*** Testing array_unique() : array with reference variables for \$input argument ***\n";
17 // input array containing elements as reference variables
18 $input = array(
27 var_dump( array_unique($input, SORT_STRING) );
32 *** Testing array_unique() : array with reference variables for $input argument ***
H A Darray_rand_variation6.phpt2 Test array_rand() function : usage variation - with heredoc string as key in the 'input' array
6 * Test behaviour of array_rand() when keys of the 'input' array is heredoc string
9 echo "*** Testing array_rand() : with keys of input array as heredoc strings ***\n";
39 $input = array(
50 var_dump( array_rand($input) );
53 var_dump( array_rand($input, 1) );
56 var_dump( array_rand($input, 3) );
59 var_dump( array_rand($input, 6) );
65 \*\*\* Testing array_rand\(\) : with keys of input array as heredoc strings \*\*\*
H A Darray_rand_variation5.phpt7 * various invalid values are passed to the 'input' and 'req_num'
14 $input = array(
23 var_dump( array_rand($input) ); // with default $num_req value
25 var_dump( array_rand($input, 1) ); // with valid $num_req value
30 var_dump( array_rand($input, 0) ); // with $num_req=0
37 var_dump( array_rand($input, -1) ); // with $num_req=-1
44 var_dump( array_rand($input, -2) ); // with $num_req=-2
49 echo"\n-- With num_req more than number of members in 'input' array --\n";
51 var_dump( array_rand($input, 13) ); // with $num_req=13
75 -- With num_req more than number of members in 'input' array --
H A Darray_rand_basic2.phpt2 Test array_rand() function : basic functionality - with associative array for 'input' argument
6 * Test array_rand() when associative array is passed to 'input' argument
12 // Initialise the 'input' and 'num_req' variables
13 $input = array(
23 var_dump( array_rand($input,$num_req) );
27 var_dump( array_rand($input) );
H A Darray_filter_variation4.phpt16 $input = array(0, -1, 2, 3.4E-3, 'hello', "value", "key" => 4, 'null' => NULL);
23 var_dump( array_filter($input, "callback1") );
26 function callback2($input)
30 var_dump( array_filter($input, "callback2") );
36 var_dump( array_filter($input, "callback3") );
39 function callback4($input)
41 if($input > 0 ) {
49 var_dump( array_filter($input, "callback4") );
H A Darray_sum_variation7.phpt13 $input = array('Apple', 'Banana', 'Carrot', 'Mango', 'Orange');
15 var_dump( array_sum($input) );
18 $input = array( true, true, false, true, false);
20 var_dump( array_sum($input) );
23 $input = array(null, NULL);
25 var_dump( array_sum($input) );
28 $input = array(
34 var_dump( array_sum($input) );
45 $input = array(
52 var_dump( array_sum($input) );
[all …]
/php-src/sapi/phpdbg/tests/
H A Dstdin_001.phpt2 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-src/ext/standard/
H A Dphp_fopen_wrapper.c78 php_stream_input_t *input = stream->abstract; in php_stream_input_read() local
86 php_stream_seek(input->body, 0, SEEK_END); in php_stream_input_read()
91 if (!input->body->readfilters.head) { in php_stream_input_read()
94 php_stream_seek(input->body, input->position, SEEK_SET); in php_stream_input_read()
101 input->position += read; in php_stream_input_read()
125 php_stream_input_t *input = stream->abstract; in php_stream_input_seek() local
127 if (input->body) { in php_stream_input_seek()
129 *newoffset = input->position = (input->body)->position; in php_stream_input_seek()
218 php_stream_input_t *input; in php_stream_url_wrap_php() local
227 input = ecalloc(1, sizeof(*input)); in php_stream_url_wrap_php()
[all …]
/php-src/ext/hash/
H A Dhash_sha.c45 output[j + 3] = (unsigned char) (input[i] & 0xff); in SHAEncode32()
60 output[i] = ((uint32_t) input[j + 3]) | (((uint32_t) input[j + 2]) << 8) | in SHADecode32()
61 (((uint32_t) input[j + 1]) << 16) | (((uint32_t) input[j]) << 24); in SHADecode32()
246 SHA256Transform(context->state, &input[i]); in PHP_SHA224Update()
324 SHA256Transform(context->state, &input[i]); in PHP_SHA256Update()
443 ((uint64_t) input[j + 7]) | (((uint64_t) input[j + 6]) << 8) | in SHADecode64()
444 (((uint64_t) input[j + 5]) << 16) | (((uint64_t) input[j + 4]) << 24) | in SHADecode64()
445 (((uint64_t) input[j + 3]) << 32) | (((uint64_t) input[j + 2]) << 40) | in SHADecode64()
446 (((uint64_t) input[j + 1]) << 48) | (((uint64_t) input[j]) << 56); in SHADecode64()
540 SHA512Transform(context->state, &input[i]); in PHP_SHA384Update()
[all …]
H A Dhash_crc32.c28 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32Update() argument
33 i += crc32_x86_simd_update(X86_CRC32, &context->state, input, len); in PHP_CRC32Update()
37 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update()
41 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32BUpdate() argument
46 i += crc32_x86_simd_update(X86_CRC32B, &context->state, input, len); in PHP_CRC32BUpdate()
50 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate()
54 PHP_HASH_API void PHP_CRC32CUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) in PHP_CRC32CUpdate() argument
59 i += crc32_x86_simd_update(X86_CRC32C, &context->state, input, len); in PHP_CRC32CUpdate()
63 context->state = (context->state >> 8) ^ crc32c_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32CUpdate()
H A Dhash_fnv.c92 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV132Update() argument
95 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
98 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, in PHP_FNV1a32Update() argument
101 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
127 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV164Update() argument
130 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
133 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, in PHP_FNV1a64Update() argument
136 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
/php-src/ext/standard/tests/strings/
H A Dadd-and-stripslashes.phpt6 $input = '';
8 $input .= chr($i%256);
12 if($input === stripslashes(addslashes($input))) {
H A Dparse_str_basic2.phpt2 Test parse_str() function : non-default arg_separator.input specified
4 arg_separator.input = "/"
7 echo "*** Testing parse_str() : non-default arg_separator.input specified ***\n";
15 *** Testing parse_str() : non-default arg_separator.input specified ***
/php-src/ext/spl/tests/
H A Dheap_005.phpt2 SPL: SplMinHeap: large unordered input iterated
5 $input = range(1,100);
6 shuffle($input);
10 foreach($input as $i) {
H A Dheap_006.phpt2 SPL: SplMaxHeap: large unordered input iterated
5 $input = range(1,100);
6 shuffle($input);
10 foreach($input as $i) {
/php-src/ext/session/tests/
H A Dsession_basic5.phpt120 <input type="text" name="test1"></input>
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>
201 <input type="text" name="test1"></input>
205 <input type="text" name="test1"></input>
209 <input type="text" name="test1"></input>
[all …]
H A D021.phpt13 url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset="
35 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=");
44 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry");
53 ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
65 <form action="//php.net/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
67 <form action="../do.php"><input type="hidden" name="PHPSESSID" value="test021" />
69 <form action="/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
71 <form action="/foo/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
/php-src/ext/mbstring/ucgendat/
H A Ductest.php21 function parseDataFile(string $input) { argument
22 $lines = explode("\n", $input);
69 function testUnicodeData(string $input) { argument
73 foreach (parseDataFile($input) as $fields) {
97 function testCaseFolding(string $input) { argument
98 foreach (parseDataFile($input) as $fields) {
113 function testSpecialCasing(string $input) { argument
114 foreach (parseDataFile($input) as $fields) {
/php-src/ext/soap/tests/interop/Round4/GroupH/
H A Dround4_groupH_complex_rpcenc.inc4 function echoSOAPStructFault($input) {
5 …return new SoapFault("Server", "Fault in response to 'echoSOAPStructFault'.", null, $input, "Compl…
8 function echoBaseStructFault($input) {
9 …return new SoapFault("Server", "Fault in response to 'echoBaseStructFault'.", null, $input, "Compl…
12 function echoExtendedStructFault($input) {
13 …return new SoapFault("Server", "Fault in response to 'echoExtendedStructFault'.", null, $input, "C…

Completed in 52 milliseconds

12345678910>>...26