/php-src/ext/date/tests/ |
H A D | date_diff.phpt | 14 for ( $i = 0; $i < COUNT * 12; $i++ ) 17 $dates[$i] = $d->add( new DateInterval( "P{$i}D" ) ); 20 for ( $i = 0; $i < COUNT; $i++) 22 // echo $dates[$i]->format( "Y-m-d\n" ); 25 $diff = date_diff( $dates[$i], $dates[$j] ); 28 $dates[$i]->format( 'Y-m-d' ), 35 $current = clone $dates[$i]; 48 $dates[$i]->format( 'Y-m-d' ), " + ",
|
H A D | bug17988.phpt | 7 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n"; 8 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n"; 9 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n"; 10 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n"; 11 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n"; 12 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n"; 13 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n"; 14 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n"; 15 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0300"))."\n"; 16 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0330"))."\n"; [all …]
|
/php-src/sapi/fuzzer/corpus/unserialize/ |
H A D | bug74103 | 1 a:7:{i:0;i:04;s:1:"a";i:2;i:9617006;i:4;s:1:"a";i:4;s:1:"a";R:5;s:1:"7";R:3;s:1:"a";R:5;;s:18;}}
|
/php-src/ext/standard/tests/file/ |
H A D | lstat_stat_variation19.phpt | 54 int(%i) 76 int(%i) 78 int(%i) 80 int(%i) 92 int(%i) 102 int(%i) 104 int(%i) 108 int(%i) 130 int(%i) 132 int(%i) [all …]
|
/php-src/Zend/Optimizer/ |
H A D | scdf.c | 110 int i; in scdf_solve() local 120 int block_num = ssa->cfg.map[i]; in scdf_solve() 124 zend_ssa_op *ssa_op = &ssa->ops[i]; in scdf_solve() 130 if (i == block->start + block->len - 1) { in scdf_solve() 215 for (uint32_t i = block->start; i < block->start + block->len; i++) { in kept_alive_by_loop_var_free() local 216 if (is_live_loop_var_free(scdf, &op_array->opcodes[i], &scdf->ssa->ops[i])) { in kept_alive_by_loop_var_free() 236 for (uint32_t i = block->start; i < block->start + block->len; i++) { in cleanup_loop_var_free_block() local 237 zend_op *opline = &op_array->opcodes[i]; in cleanup_loop_var_free_block() 238 zend_ssa_op *ssa_op = &scdf->ssa->ops[i]; in cleanup_loop_var_free_block() 261 int i; in scdf_remove_unreachable_blocks() local [all …]
|
/php-src/Zend/tests/generators/ |
H A D | yield_from_deep_recursion.phpt | 7 function from($i) { 8 yield $i; 11 function gen($i = 0) { 12 if ($i < 50000) { 13 yield from gen(++$i); 15 yield $i; 16 yield from from(++$i);
|
/php-src/ext/standard/ |
H A D | browscap.c | 93 for (i = 0; i < ZSTR_LEN(pattern); i++) { in browscap_compute_prefix_len() 106 for (; i < ZSTR_LEN(pattern); i++) { in browscap_compute_contains() 131 for (i = 0; i < ZSTR_LEN(pattern); i++) { in browscap_compute_regex_len() 160 for (i = 0; i < ZSTR_LEN(pattern); i++, j++) { in browscap_convert_pattern() 269 for (uint32_t i = entry->kv_start; i < entry->kv_end; i++) { in browscap_entry_add_kv_to_existing_array() local 395 for (i = 0; i < BROWSCAP_NUM_CONTAINS; i++) { in php_browscap_parser_cb() 471 for (i = 0; i < bdata->kv_used; i++) { in browscap_bdata_dtor() 544 for (i = 0; i < BROWSCAP_NUM_CONTAINS; i++) { in browscap_get_minimum_length() 638 for (int i = 0; i < BROWSCAP_NUM_CONTAINS; i++) { in browser_reg_compare() local 671 for (size_t i = curr_len; i < ZSTR_LEN(current_match); i++) { in browser_reg_compare() local [all …]
|
/php-src/ext/curl/tests/ |
H A D | curl_version_basic_001.phpt | 19 int(%i) 20 int(%i) 21 int(%i) 22 int(%i) 23 string(%i) "%s" 24 string(%i) "%s" 25 string(%i) "%S" 26 string(%i) "%S"
|
/php-src/main/ |
H A D | php_odbc_utils.c | 47 for (size_t i = 0; i < length; i++) { in php_odbc_connstr_is_quoted() local 48 if (str[i] == '}' && str[i + 1] == '}') { in php_odbc_connstr_is_quoted() 50 i++; in php_odbc_connstr_is_quoted() 51 } else if (str[i] == '}' && str[i + 1] != '\0') { in php_odbc_connstr_is_quoted()
|
/php-src/scripts/dev/ |
H A D | check_parameters.php | 210 for ($i = 0; $i < $len; ++$i) { 211 $char = $spec[$i]; 212 switch ($char = $spec[$i]) { 219 if ($i == $len-1) { 273 $allow_uninit = $i+1 < $len && $spec[$i+1] === '!' 319 for ($i = 0; $i < count($lines); ++$i) { 320 $j += strlen($lines[$i]) + strlen(@$lines[++$i]); 327 for ($i = 0; $i < count($split); $i+=2) { 331 check_function(preg_replace('/\s*,\s*/S', '::', $split[$i][0]), $f, $split[$i][1]); 347 for ($i = 1; $i < $argc; $i++) { variable [all …]
|
/php-src/ext/pdo/ |
H A D | pdo.c | 159 zend_ulong i; in php_pdo_parse_data_source() local 168 i = 0; in php_pdo_parse_data_source() 177 ++i; in php_pdo_parse_data_source() 188 semi = i++; in php_pdo_parse_data_source() 193 semi = i++; in php_pdo_parse_data_source() 197 i += 2; in php_pdo_parse_data_source() 201 ++i; in php_pdo_parse_data_source() 205 semi = i; in php_pdo_parse_data_source() 247 while (i < data_source_len && isspace(data_source[i])) { in php_pdo_parse_data_source() 248 i++; in php_pdo_parse_data_source() [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir_save.c | 56 for (i = 0, p = &ctx->use_edges[use_list->refs]; i < use_list->count; i++, p++) { in ir_save_dessa_moves() 97 for (i = IR_UNUSED + 1, insn = ctx->ir_base - i; i < ctx->consts_count; i++, insn--) { in ir_save() 114 for (i = IR_UNUSED + 1, insn = ctx->ir_base + i; i < ctx->insns_count;) { in ir_save() 120 && ctx->cfg_blocks[ctx->cfg_map[i]].start == i) { in ir_save() 144 uint32_t i; in ir_save() local 147 for (i = 1; i < bb->predecessors_count; i++) { in ir_save() 153 uint32_t i; in ir_save() local 156 for (i = 1; i < bb->successors_count; i++) { in ir_save() 347 && ctx->cfg_map[i] in ir_save() 348 && ctx->cfg_blocks[ctx->cfg_map[i]].end == i) { in ir_save() [all …]
|
/php-src/ext/standard/tests/serialize/ |
H A D | bug70172.phpt | 23 $exploit = 'a:2:{i:0;i:1;i:1;C:3:"obj":'.strlen($inner).':{'.$inner.'}}'; 27 for ($i = 0; $i < 5; $i++) { 28 $v[$i] = $fakezval.$i; 36 for ($i = 0; $i < 8; $i++) {
|
/php-src/ext/pgsql/tests/ |
H A D | 32nb_async_query.phpt | 39 for ($i=0; $i < $rows; $i++) { 40 pg_fetch_array($result, $i, PGSQL_NUM); 42 for ($i=0; $i < $rows; $i++) { 45 for ($i=0; $i < $rows; $i++) { 46 pg_fetch_row($result, $i); 48 for ($i=0; $i < $rows; $i++) { 49 pg_fetch_result($result, $i, 0);
|
H A D | 30nb_async_query_params.phpt | 38 for ($i=0; $i < $rows; $i++) { 39 pg_fetch_array($result, $i, PGSQL_NUM); 41 for ($i=0; $i < $rows; $i++) { 44 for ($i=0; $i < $rows; $i++) { 45 pg_fetch_row($result, $i); 47 for ($i=0; $i < $rows; $i++) { 48 pg_fetch_result($result, $i, 0);
|
/php-src/ext/hash/ |
H A D | hash_crc32.c | 30 size_t i = 0; in PHP_CRC32Update() local 33 i += crc32_x86_simd_update(X86_CRC32, &context->state, input, len); in PHP_CRC32Update() 36 for (; i < len; ++i) { in PHP_CRC32Update() 43 size_t i = 0; in PHP_CRC32BUpdate() local 46 i += crc32_x86_simd_update(X86_CRC32B, &context->state, input, len); in PHP_CRC32BUpdate() 49 for (; i < len; ++i) { in PHP_CRC32BUpdate() 50 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate() 56 size_t i = 0; in PHP_CRC32CUpdate() local 59 i += crc32_x86_simd_update(X86_CRC32C, &context->state, input, len); in PHP_CRC32CUpdate() 62 for (; i < len; ++i) { in PHP_CRC32CUpdate() [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | encoding.c | 271 for (i = 0; i < nbytes; i++) { \ 353 size_t i; in file_looks_utf8() local 361 for (i = 0; i < nbytes; i++) { in file_looks_utf8() 402 i++; in file_looks_utf8() 407 (buf[i] < ar->lo || buf[i] > ar->hi)) in file_looks_utf8() 410 if ((buf[i] & 0x80) == 0 || (buf[i] & 0x40)) in file_looks_utf8() 470 size_t i; in looks_ucs16() local 485 for (i = 2; i + 1 < nbytes; i += 2) { in looks_ucs16() 543 for (i = 4; i + 3 < nbytes; i += 4) { in looks_ucs32() 655 for (i = 0; i < nbytes; i++) { in from_ebcdic() [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | array_diff_key.phpt | 13 $i = 1; 20 echo "------ Test $i --------\n";$i++;// 1 24 echo "------ Test $i --------\n";$i++;// 2 28 echo "------ Test $i --------\n";$i++;// 3 32 echo "------ Test $i --------\n";$i++;// 4 36 echo "------ Test $i --------\n";$i++;// 5 41 echo "------ Test $i --------\n";$i++;// 6 46 echo "------ Test $i --------\n";$i++;// 7 50 echo "------ Test $i --------\n";$i++;// 8 55 echo "------ Test $i --------\n";$i++;// 9
|
/php-src/ext/dom/tests/ |
H A D | DomNodeList_count.phpt | 13 for($i = 0; $i < 5; $i++) { 14 $root->setAttribute('attribute-' . $i, 'value-' . $i); 16 for($i = 0; $i < 7; $i++) {
|
H A D | DOMNamedNodeMap_count.phpt | 13 for($i = 0; $i < 5; $i++) { 14 $root->setAttribute('attribute-' . $i, 'value-' . $i); 16 for($i = 0; $i < 7; $i++) {
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_error.c | 304 PCRE2_SIZE i; in pcre2_get_error_message() local 331 for (i = 0; *message != 0; i++) in pcre2_get_error_message() 333 if (i >= size - 1) in pcre2_get_error_message() 335 buffer[i] = 0; /* Terminate partial message */ in pcre2_get_error_message() 338 buffer[i] = *message++; in pcre2_get_error_message() 341 buffer[i] = 0; in pcre2_get_error_message() 342 return (int)i; in pcre2_get_error_message()
|
/php-src/tests/lang/operators/ |
H A D | operator_gt_variation.phpt | 25 for ($i = 0; $i < count($validGreaterThan); $i +=2) { 26 $typeToTestVal = $validGreaterThan[$i]; 27 $compares = $validGreaterThan[$i + 1]; 39 for ($i = 0; $i < count($invalidGreaterThan); $i +=2) { 40 $typeToTestVal = $invalidGreaterThan[$i]; 41 $compares = $invalidGreaterThan[$i + 1];
|
H A D | operator_lt_variation.phpt | 23 for ($i = 0; $i < count($validLessThan); $i +=2) { 24 $typeToTestVal = $validLessThan[$i]; 25 $compares = $validLessThan[$i + 1]; 37 for ($i = 0; $i < count($invalidLessThan); $i +=2) { 38 $typeToTestVal = $invalidLessThan[$i]; 39 $compares = $invalidLessThan[$i + 1];
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_debug.c | 51 int i; in MYSQLND_METHOD() local 67 for (;i > 0;i--) { in MYSQLND_METHOD() 136 int i; in MYSQLND_METHOD() local 154 for (;i > 0;i--) { in MYSQLND_METHOD() 502 for (i = 0; i < mode_len; i++) { in MYSQLND_METHOD() 510 if (mode[i] == 'a' || mode[i] == 'A') { in MYSQLND_METHOD() 513 if (i + 1 < mode_len && mode[i+1] == ',') { in MYSQLND_METHOD() 516 if (i+4 < mode_len && mode[i+3] == ':' && (mode[i+4] == '\\' || mode[i+4] == '/')) { in MYSQLND_METHOD() 543 if (i + 1 < mode_len && mode[i+1] == ',') { in MYSQLND_METHOD() 545 i++; in MYSQLND_METHOD() [all …]
|
/php-src/ext/dba/ |
H A D | config.m4 | 162 THIS_PREFIX=$i 166 THIS_PREFIX=$i 202 THIS_PREFIX=$i 229 THIS_PREFIX=$i 233 THIS_PREFIX=$i 265 THIS_PREFIX=$i 298 THIS_PREFIX=$i 408 for i in \ 425 THIS_PREFIX=$i 507 for i in \ [all …]
|