/php-src/ext/spl/tests/ |
H A D | SplFixedArray_serialize.phpt | 47 …lFixedArray":6:{i:0;s:3:"foo";i:1;N;i:2;i:42;i:3;O:8:"stdClass":1:{s:4:"prop";s:5:"value";}i:4;a:5…
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_io.c | 36 int i; in ZEND_EXTERN_MODULE_GLOBALS() local 41 for (i = len; i < len + bytes; i++) { in ZEND_EXTERN_MODULE_GLOBALS() 42 if (buf[i] == '\x03') { in ZEND_EXTERN_MODULE_GLOBALS() 43 if (i != len + bytes - 1) { in ZEND_EXTERN_MODULE_GLOBALS() 44 memmove(buf + i, buf + i + 1, len + bytes - i - 1); in ZEND_EXTERN_MODULE_GLOBALS() 47 i--; in ZEND_EXTERN_MODULE_GLOBALS() 50 if (buf[i] == '\n') { in ZEND_EXTERN_MODULE_GLOBALS() 51 PHPDBG_G(input_buflen) = len + bytes - 1 - i; in ZEND_EXTERN_MODULE_GLOBALS() 55 if (i != PHPDBG_MAX_CMD - 1) { in ZEND_EXTERN_MODULE_GLOBALS() 56 buf[i + 1] = 0; in ZEND_EXTERN_MODULE_GLOBALS() [all …]
|
H A D | phpdbg_btree.c | 42 int i = tree->depth - 1; in phpdbg_btree_find() local 62 } while (i--); in phpdbg_btree_find() 89 i = tree->depth - 1; in phpdbg_btree_find_closest() 97 while (i--) { in phpdbg_btree_find_closest() 111 while (i--) { in phpdbg_btree_find_closest() 117 } while (i--); in phpdbg_btree_find_closest() 153 } while (i--); in phpdbg_btree_insert_or_update() 166 } while (i--); in phpdbg_btree_insert_or_update() 180 int i = tree->depth; in phpdbg_btree_delete() local 198 } while (i--); in phpdbg_btree_delete() [all …]
|
/php-src/ext/pgsql/tests/ |
H A D | 23sync_query_params.phpt | 24 for ($i=0; $i < $rows; $i++) 26 pg_fetch_array($result, $i, PGSQL_NUM); 28 for ($i=0; $i < $rows; $i++) 32 for ($i=0; $i < $rows; $i++) 34 pg_fetch_row($result, $i); 36 for ($i=0; $i < $rows; $i++) 38 pg_fetch_result($result, $i, 0);
|
H A D | 24sync_query_prepared.phpt | 27 for ($i=0; $i < $rows; $i++) 29 pg_fetch_array($result, $i, PGSQL_NUM); 31 for ($i=0; $i < $rows; $i++) 35 for ($i=0; $i < $rows; $i++) 37 pg_fetch_row($result, $i); 39 for ($i=0; $i < $rows; $i++) 41 pg_fetch_result($result, $i, 0);
|
/php-src/ext/random/tests/01_functions/ |
H A D | mt_rand_value.phpt | 8 for ($i=0; $i<16; $i++) { 14 for ($i=0; $i<1024; $i++) { 22 for ($i=0; $i<16; $i++) { 28 for ($i=0; $i<1024; $i++) {
|
/php-src/ext/hash/ |
H A D | hash_joaat.c | 59 int i = 0; in PHP_JOAATFinal() local 62 for (i = 0; i < 4; i++) { in PHP_JOAATFinal() 63 digest[i] = c[3 - i]; in PHP_JOAATFinal() 82 size_t i; in joaat_buf() local 85 for (i = 0; i < len; i++) { in joaat_buf() 86 hval += input[i]; in joaat_buf()
|
/php-src/ext/bcmath/libbcmath/src/ |
H A D | recmul.c | 45 for (size_t i = 0; i < prod_arr_size - 1; i++) { in bc_mul_carry_calc() local 110 size_t i = 0; in bc_mul_finish_from_vector() local 120 i++; in bc_mul_finish_from_vector() 143 size_t i; in bc_standard_mul() local 163 for (i = 0; i < prod_arr_size; i++) { in bc_standard_mul() 173 for (i = 0; i < n1_arr_size; i++) { in bc_standard_mul() 185 prod_vector[i + j] += n1_vector[i] * n2_vector[j]; in bc_standard_mul() 197 size_t i; in bc_standard_square() local 209 for (i = 0; i < prod_arr_size; i++) { in bc_standard_square() 218 for (i = 0; i < n1_arr_size; i++) { in bc_standard_square() [all …]
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_ord2utf.c | 86 int i, j; in PRIV() local 87 for (i = 0; i < PRIV(utf8_table1_size); i++) in PRIV() 88 if ((int)cvalue <= PRIV(utf8_table1)[i]) break; in PRIV() 89 buffer += i; in PRIV() 90 for (j = i; j > 0; j--) in PRIV() 95 *buffer = PRIV(utf8_table2)[i] | cvalue; in PRIV() 96 return i + 1; in PRIV()
|
/php-src/ext/dba/libcdb/ |
H A D | cdb_make.c | 139 int i; in cdb_make_finish() local 148 for (i = 0;i < 256;++i) in cdb_make_finish() 149 c->count[i] = 0; in cdb_make_finish() 152 i = x->num; in cdb_make_finish() 153 while (i--) in cdb_make_finish() 158 for (i = 0;i < 256;++i) { in cdb_make_finish() 179 for (i = 0;i < 256;++i) { in cdb_make_finish() 185 i = x->num; in cdb_make_finish() 186 while (i--) in cdb_make_finish() 187 c->split[--c->start[255 & x->hp[i].h]] = x->hp[i]; in cdb_make_finish() [all …]
|
/php-src/win32/build/ |
H A D | buildconf.js | 53 var c, i, ok, n; 85 for (i = 0; i < calls.length; i++) { 107 var i, mod_name, j; 114 for (i in module_names) { 132 var i, mod_name, j; 155 var i, mod_name, j; 181 for (i = 0; i < args.length; i++) { 182 arg = args(i); 222 for (i = 0; i < module_dirs.length; i++) { 234 for (i = 0; i < calls.length; i++) { [all …]
|
/php-src/ext/mbstring/tests/ |
H A D | mb_ucfirst_lcfirst.phpt | 10 for ($i = 0; $i < 128; $i++) { 11 if ($i >= 97 && $i <= 122) { /* a to z */ 12 if (mb_ucfirst(chr($i)) !== chr($i - (97 - 65))) { 13 echo "mb_ucfirst compare failed: " . chr($i) . "\n"; 16 if (mb_ucfirst(chr($i)) !== chr($i)) { 17 echo "mb_ucfirst compare failed: " . chr($i) . "\n"; 25 for ($i = 0; $i < 128; $i++) { 26 if ($i >= 65 && $i <= 90) { /* A to Z */ 27 if (mb_lcfirst(chr($i)) !== chr($i + (97 - 65))) { 28 echo "mb_lcfirst compare failed: " . chr($i) . "\n"; [all …]
|
/php-src/ext/fileinfo/ |
H A D | php_libmagic.c | 22 size_t i, j; in convert_libmagic_pattern() local 25 for (i = j = 0; i < len; i++) { in convert_libmagic_pattern() 26 switch (val[i]) { in convert_libmagic_pattern() 43 for (i = 0; i < len; i++, j++) { in convert_libmagic_pattern() 44 switch (val[i]) { in convert_libmagic_pattern() 56 ZSTR_VAL(t)[j] = val[i]; in convert_libmagic_pattern()
|
/php-src/Zend/tests/try/ |
H A D | try_catch_finally_005.phpt | 7 for ($i = 0; $i < 100 ; $i ++) { 16 for ($i = 0; $i < 2; $i ++) { 24 for ($i = 0; $i < 3; $i ++) { 30 if ($i == 1) {
|
/php-src/sapi/fpm/fpm/events/ |
H A D | poll.c | 69 int i; in fpm_event_poll_init() local 84 for (i = 0; i < max; i++) { in fpm_event_poll_init() 85 pollfds[i].fd = -1; in fpm_event_poll_init() 181 int i; in fpm_event_poll_add() local 198 for (i = 0; i < npollfds; i++) { in fpm_event_poll_add() 205 pollfds[i].fd = ev->fd; in fpm_event_poll_add() 226 int i; in fpm_event_poll_remove() local 244 for (i = 0; i < npollfds; i++) { in fpm_event_poll_remove() 252 next_free_slot = i; in fpm_event_poll_remove() 255 pollfds[i].fd = -1; in fpm_event_poll_remove() [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_getElementsByTagName_liveness_tree_walk.phpt | 9 $doc->loadXML('<root><container><a><b i="1"/><b i="2"/></a><b i="3"/></container><b i="4"/></root>'… 14 for ($i = 0; $i < $list->length; $i++) { 15 echo $i, " ", $list->item($i)->getAttribute('i'), "\n"; 18 var_dump($list->item($i)); 22 echo $item->getAttribute('i'), "\n"; 28 for ($i = 0; $i < $list->length; $i++) { 29 echo $i, " ", $list->item($i)->getAttribute('i'), "\n"; 32 var_dump($list->item($i)); 36 echo $item->getAttribute('i'), "\n";
|
/php-src/ext/random/tests/03_randomizer/methods/ |
H A D | pickArrayKeys.phpt | 28 for ($i = 0; $i < 500; $i++) { 29 $string = sha1((string)$i); 31 $array1[] = $i; 32 $array2[$string] = $i; 33 $array3[$string] = $i; 34 $array3[$i] = $string; 42 for ($i = 1; $i < $iterations; $i++) { 43 $result = $randomizer->pickArrayKeys($array1, $i); 50 die("failure: non-keys returned at {$i} for array1"); 53 $result = $randomizer->pickArrayKeys($array2, $i); [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | 067.phpt | 41 for ($i=0;$i < 3; $i++) { 42 $mysql->query("DROP TABLE IF EXISTS cursor$i"); 43 $mysql->query("CREATE TABLE cursor$i (a int not null) ENGINE=" . $engine); 44 $mysql->query("INSERT INTO cursor$i VALUES (1),(2),(3),(4),(5),(6)"); 45 $stmt[$i] = open_cursor($mysql, "SELECT a FROM cursor$i"); 46 $stmt[$i]->execute(); 47 $stmt[$i]->bind_result($a[$i]); 58 for ($i=0; $i < 3; $i++) { 59 $stmt[$i]->close(); 71 for ($i =0; $i < 3; $i++) { [all …]
|
/php-src/ext/date/tests/ |
H A D | DateTimeImmutable_createFromInterface-001.phpt | 9 $i = DateTimeImmutable::createFromInterface( date_create( $current ) ); 10 var_dump( $i ); 12 $i = DateTimeImmutable::createFromInterface( date_create_immutable( $current ) ); 13 var_dump( $i ); 17 $i = DateTimeImmutable::createFromInterface( date_create( $current ) ); 18 var_dump( $i ); 20 $i = DateTimeImmutable::createFromInterface( date_create_immutable( $current ) ); 21 var_dump( $i ); 25 $i = DateTimeImmutable::createFromInterface( date_create( $current ) ); 26 var_dump( $i ); [all …]
|
H A D | DateTime_createFromInterface-001.phpt | 9 $i = DateTime::createFromInterface( date_create( $current ) ); 10 var_dump( $i ); 12 $i = DateTime::createFromInterface( date_create_immutable( $current ) ); 13 var_dump( $i ); 17 $i = DateTime::createFromInterface( date_create( $current ) ); 18 var_dump( $i ); 20 $i = DateTime::createFromInterface( date_create_immutable( $current ) ); 21 var_dump( $i ); 25 $i = DateTime::createFromInterface( date_create( $current ) ); 26 var_dump( $i ); [all …]
|
/php-src/ext/standard/tests/serialize/ |
H A D | bug31402.phpt | 9 var $i; 11 function __construct($i) { 12 $this->i = $i; 42 ["i"]=> 47 ["i"]=> 52 ["i"]=> 58 ["i"]=> 67 ["i"]=> 72 ["i"]=> 77 ["i"]=> [all …]
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_023.phpt | 11 public static int $i; 15 var_dump(Foo::$i = 1); 16 var_dump(Foo::$i); 17 var_dump(Foo::$i = "1"); 18 var_dump(Foo::$i); 21 var_dump(Foo::$s = Foo::$i++); 22 var_dump(Foo::$s, Foo::$i); 26 var_dump(Foo::$i = "4"); 27 var_dump(Foo::$i); 29 var_dump(Foo::$i = ref()); [all …]
|
/php-src/ext/spl/tests/SplObjectStorage/ |
H A D | bug70365.phpt | 19 $inner = 'x:i:1;O:8:"stdClass":0:{},i:1;;m:a:0:{}'; 20 $exploit = 'a:5:{i:0;i:1;i:1;C:16:"SplObjectStorage":'.strlen($inner).':{'.$inner.'}i:2;O:3:"obj":1… 29 for ($i = 0; $i < 8; $i++) {
|
/php-src/ext/mbstring/ |
H A D | php_unicode.c | 251 for (unsigned int i = 0; i < out_len; i++) { in scan_ahead_for_cased_letter() local 304 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 311 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 318 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 325 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 339 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 355 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 386 j = i + 1; in php_unicode_convert_case() 408 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local 424 for (size_t i = 0; i < out_len; i++) { in php_unicode_convert_case() local [all …]
|
/php-src/ext/opcache/tests/opt/ |
H A D | sccp_021.phpt | 15 for ( $i = 0; $i < $num_tokens; ++$i ) { 16 if ( 0 < $i ) 17 $queries[$i] = $queries[$i - 1] . '&'; 19 $queries[$i] = ''; 21 $queries[$i] .= $query_token;
|