/php-src/ext/zip/examples/ |
H A D | dir.php | 17 for ($i=0; $i<$za->numFiles;$i++) { variable 18 echo "index: $i\n"; 19 print_r($za->statIndex($i));
|
/php-src/ext/mbstring/tests/ |
H A D | cp5022x_encoding.phpt | 60 for ($i = 0xF0; $i <= 0xF9; $i++) { 128 for ($i = 0; $i < 0x80; $i++) { 129 if ($i == 0xE || $i == 0xF || $i == 0x1B) 140 for ($i = 0x80; $i < 256; $i++) { 179 for ($i = 0x80; $i < 256; $i++) { 180 if ($i >= 0xA1 && $i <= 0xDF) 219 for ($i = 0x21; $i <= 0x97; $i++) { 231 for ($i = 0x21; $i <= 0x97; $i++) { 248 for ($i = 0x21; $i <= 0x97; $i++) { 259 for ($i = 0x21; $i <= 0x97; $i++) { [all …]
|
H A D | mb_split.phpt | 28 for ( $i = 1; $i < 5; ++$i ) { 29 verify_split( " ", "a\tb\tc\td e\tf g", $i ); 32 for ( $i = 1; $i < 5; ++$i ) { 33 …erify_split( "\xa1\xa1+", "\xa1\xa1\xa1\xa2\xa2\xa1\xa1\xa1\xa1\xa1\xa1\xa2\xa2\xa1\xa1\xa1", $i );
|
H A D | iso2022kr_encoding.phpt | 43 for ($i = 0; $i < 0x80; $i++) { 44 if ($i == 0xE || $i == 0xF || $i == 0x1B) 46 testValid(chr($i), "\x00" . chr($i)); 47 testValid("\x0F" . chr($i), "\x00" . chr($i)); /* 0xF is 'Shift In' code */ 50 for ($i = 0x80; $i < 256; $i++) { 51 testInvalid(chr($i), "\x00%"); 52 testInvalid("\x0F" . chr($i), "\x00%"); 87 for ($i = 0; $i < 256; $i++) { 88 if (chr($i) != '$') 90 if (chr($i) != ')') [all …]
|
/php-src/Zend/ |
H A D | zend_ptr_stack.c | 82 int i = stack->top; in zend_ptr_stack_apply() local 84 while (--i >= 0) { in zend_ptr_stack_apply() 85 func(stack->elements[i]); in zend_ptr_stack_apply() 91 int i = 0; in zend_ptr_stack_reverse_apply() local 93 while (i < stack->top) { in zend_ptr_stack_reverse_apply() 94 func(stack->elements[i++]); in zend_ptr_stack_reverse_apply() 103 int i = stack->top; in zend_ptr_stack_clean() local 105 while (--i >= 0) { in zend_ptr_stack_clean() 106 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
|
/php-src/ext/gd/tests/ |
H A D | bug43475.phpt | 21 $i = 0; 22 while ($i < 16 * $thickness) { 23 $style[$i++] = $color; 25 while ($i < 20 * $thickness) { 26 $style[$i++] = IMG_COLOR_TRANSPARENT; 28 while ($i < 28 * $thickness) { 29 $style[$i++] = $color; 31 while ($i < 32 * $thickness) { 32 $style[$i++] = IMG_COLOR_TRANSPARENT;
|
/php-src/ext/opcache/tests/ |
H A D | neg_range_inference.phpt | 9 for ($i = 0; $i < 10; $i++) { 10 if ($i != 5) { 11 $t = (int) ($i < 5);
|
/php-src/ext/hash/ |
H A D | hash_fnv.c | 109 int i = 0; in PHP_FNV132Final() 112 for (i = 0; i < 4; i++) { in PHP_FNV132Final() 113 digest[i] = c[3 - i]; in PHP_FNV132Final() 144 int i = 0; in PHP_FNV164Final() 147 for (i = 0; i < 8; i++) { in PHP_FNV164Final() 148 digest[i] = c[7 - i]; in PHP_FNV164Final()
|
/php-src/ext/standard/ |
H A D | proc_open.c | 276 for (int i = 0; i < proc->npipes; i++) { in proc_open_rsrc_dtor() local 534 for (size_t i = 0; i < num_bs; i++) { in append_backslashes() local 543 for (size_t i = 0; i < ZSTR_LEN(arg); ++i) { in is_special_character_present() local 566 for (size_t i = 0; i < ZSTR_LEN(arg); ++i) { in append_win_escaped_arg() local 691 for (int i = 0; i < ndesc; i++) { in init_startup_info() local 955 for (int i = 0; i < ndesc; i++) { in redirect_proc_descriptor() local 1075 for (int i = 0; i < ndesc; i++) { in close_parentends_of_pipes() local 1107 for (int i = 0; i < ndesc; i++) { in close_parentends_of_pipes() local 1128 for (int i = 0; i < ndesc; i++) { in close_all_descriptors() local 1160 int i; in PHP_FUNCTION() local [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | extract_typed_ref.phpt | 7 public int $i = 0; 12 $i =& $test->i; 15 extract(['i' => 'foo', 's' => 42]); 17 var_dump($test->i, $test->s); 21 Cannot assign string to reference held by property Test::$i of type int
|
H A D | array_chunk_variation10.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) { 8 echo "[$i]\n"; 9 var_dump (array_chunk ($array, $i)); 10 var_dump (array_chunk ($array, $i, TRUE)); 11 var_dump (array_chunk ($array, $i, FALSE));
|
H A D | array_chunk_variation12.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) { 8 echo "[$i]\n"; 9 var_dump (array_chunk ($array, $i)); 10 var_dump (array_chunk ($array, $i, TRUE)); 11 var_dump (array_chunk ($array, $i, FALSE));
|
H A D | array_chunk_variation14.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) { 8 echo "[$i]\n"; 9 var_dump (array_chunk ($array, $i)); 10 var_dump (array_chunk ($array, $i, TRUE)); 11 var_dump (array_chunk ($array, $i, FALSE));
|
H A D | array_chunk_variation15.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) { 8 echo "[$i]\n"; 9 var_dump (array_chunk ($array, $i)); 10 var_dump (array_chunk ($array, $i, TRUE)); 11 var_dump (array_chunk ($array, $i, FALSE));
|
H A D | array_chunk_variation30.phpt | 7 for ($i = 1; $i < (sizeof($array) + 1); $i++) { 8 echo "[$i]\n"; 9 var_dump (array_chunk ($array, $i)); 10 var_dump (array_chunk ($array, $i, TRUE)); 11 var_dump (array_chunk ($array, $i, FALSE));
|
/php-src/ext/session/tests/ |
H A D | session_encode_variation4.phpt | 29 string(52) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}guff|R:1;blah|R:1;"
|
/php-src/ext/opcache/tests/jit/ |
H A D | defined_001.phpt | 12 function foo($i) { 27 die("Error on $i-th iteration\n"); 31 for ($i = 0; $i < 10000; $i++) { 32 foo($i);
|
/php-src/sapi/fuzzer/corpus/unserialize/ |
H A D | bug74101 | 1 O:9:"Exception":799999999999999999999999999997:0i:0;a:0:{}i:2;i:0;i:0;R:2;
|
/php-src/tests/func/ |
H A D | 003.phpt | 11 function b($i) 13 echo "$i\n"; 17 function c($i,$j) 19 echo "Counting from $i to $j\n"; 20 for ($k=$i; $k<=$j; $k++) { 57 for ($i=0; $i<=10; $i++) { 58 $n=factorial($i); 69 for ($i=0; $i<=10; $i++) { 70 if ($i == 5) break; 71 $n=factorial($i); [all …]
|
/php-src/ext/random/tests/02_engine/ |
H A D | all_serialize_user.phpt | 20 for ($i = 0; $i < 10_000; $i++) { 26 for ($i = 0; $i < $iterations; $i++) { 28 die("failure: state differs at {$i}");
|
/php-src/ext/spl/tests/SplObjectStorage/ |
H A D | bug49263.phpt | 19 …ectStorage":2:{i:0;a:4:{i:0;O:8:"stdClass":0:{}i:1;a:2:{s:4:"prev";i:2;s:4:"next";O:8:"stdClass":0…
|
/php-src/ext/snmp/tests/ |
H A D | bigtest | 4 i=0; 5 while [ $i -lt 32 ]; do 7 i=$((i+1));
|
/php-src/sapi/phpdbg/tests/ |
H A D | info_001.phpt | 6 i classes 7 i funcs 10 i v 11 i g 12 i b 13 i d 14 i F 15 i e 16 i l 18 i v
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 458 while (i++ < len) { in phpdbg_parse_variable_with_arg() 459 if (i == len) { in phpdbg_parse_variable_with_arg() 462 switch (input[i]) { in phpdbg_parse_variable_with_arg() 494 if (i == len || (i == len - 1 && input[len - 1] == ']')) { in phpdbg_parse_variable_with_arg() 551 phpdbg_error("%.*s is undefined", (int) (input[i] == ']' ? i + 1 : i), input); in phpdbg_parse_variable_with_arg() 560 if (i == len) { in phpdbg_parse_variable_with_arg() 594 phpdbg_error("%.*s is nor an array nor an object", (int) (input[i] == '>' ? i - 1 : i), input); in phpdbg_parse_variable_with_arg() 614 uint32_t op_num, i; in phpdbg_check_caught_ex() local 625 for (i = 0; i < op_array->last_try_catch && op_array->try_catch_array[i].try_op <= op_num; i++) { in phpdbg_check_caught_ex() 695 int i; in phpdbg_short_zval_print() local [all …]
|
/php-src/ext/spl/tests/ |
H A D | spl_iterator_caching_count_basic.phpt | 8 $i = new ArrayIterator(array(1,1,1,1,1)); 9 $i = new CachingIterator($i,CachingIterator::FULL_CACHE); 10 foreach ($i as $value) { 11 echo $i->count()."\n";
|