/PHP-8.0/ext/spl/tests/ |
H A D | array_014.phpt | 32 $pos = 0; 35 $it->seek($pos++);
|
H A D | iterator_008.phpt | 37 $pos =0; 41 if ($pos++ > 5) {
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_cmd.c | 29 size_t pos = 0; in ZEND_EXTERN_MODULE_GLOBALS() local 33 pos += command->parent->name_len; in ZEND_EXTERN_MODULE_GLOBALS() 34 memcpy(&buffer[pos], " ", sizeof(" ")-1); in ZEND_EXTERN_MODULE_GLOBALS() 35 pos += (sizeof(" ")-1); in ZEND_EXTERN_MODULE_GLOBALS() 39 pos += command->name_len; in ZEND_EXTERN_MODULE_GLOBALS() 40 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS() 626 size_t pos = 0; in phpdbg_stack_resolve() local 635 pos += matched[it]->name_len; in phpdbg_stack_resolve() 637 memcpy(&list[pos], ", ", sizeof(", ") - 1); in phpdbg_stack_resolve() 638 pos += (sizeof(", ") - 1); in phpdbg_stack_resolve() [all …]
|
/PHP-8.0/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_memory_device.h | 42 size_t pos; member 49 size_t pos; member
|
/PHP-8.0/ext/gd/libgd/ |
H A D | wbmp.c | 153 int row, col, byte, pel, pos; in readwbmp() local 208 pos = 0; in readwbmp() 221 wbmp->bitmap[pos] = WBMP_WHITE; in readwbmp() 225 wbmp->bitmap[pos] = WBMP_BLACK; in readwbmp() 227 pos++; in readwbmp()
|
/PHP-8.0/ext/mbstring/ |
H A D | php_mbregex.c | 1003 OnigUChar *pos; in _php_mb_regex_ereg_replace_exec() local 1063 pos = (OnigUChar *)string; in _php_mb_regex_ereg_replace_exec() 1123 if (pos < string_lim) { in _php_mb_regex_ereg_replace_exec() 1126 pos++; in _php_mb_regex_ereg_replace_exec() 1130 if (string_lim - pos > 0) { in _php_mb_regex_ereg_replace_exec() 1131 smart_str_appendl(&out_buf, (char *)pos, string_lim - pos); in _php_mb_regex_ereg_replace_exec() 1186 OnigUChar *pos, *chunk_pos; in PHP_FUNCTION() local 1234 pos++; in PHP_FUNCTION() 1330 size_t n, i, pos, len; in _php_mb_regex_ereg_search_exec() local 1360 pos = MBREX(search_pos); in _php_mb_regex_ereg_search_exec() [all …]
|
/PHP-8.0/ext/soap/tests/ |
H A D | bug73037.phpt | 112 $pos = strpos($out, "<env:Text>"); 113 if (false === $pos) { 117 $pos0 = $pos + strlen("<env:Text>"); 118 $pos = strpos($out, "</env:Text>"); 119 if (false === $pos) { 123 $len = $pos - $pos0;
|
/PHP-8.0/ext/com_dotnet/ |
H A D | com_wrapper.c | 444 HashPosition pos; in generate_dispids() local 459 zend_hash_internal_pointer_reset_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids() 462 &pid, &pos))) { in generate_dispids() 471 zend_hash_move_forward_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids() 496 &name, &pid, &pos))) { in generate_dispids() 506 zend_hash_move_forward_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids() 584 HashPosition pos; in php_com_wrapper_export_as_sink() local 598 zend_hash_internal_pointer_reset_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink() 600 zend_hash_get_current_key_ex(id_to_name, &name, &pid, &pos))) { in php_com_wrapper_export_as_sink() 604 ntmp = zend_hash_get_current_data_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink() [all …]
|
/PHP-8.0/ext/readline/ |
H A D | readline_cli.c | 593 size_t size = 4096, pos = 0, len; in readline_shell_run() local 630 if (!pos && !*line) { in readline_shell_run() 655 if (pos + len + 2 > size) { in readline_shell_run() 656 size = pos + len + 2; in readline_shell_run() 659 memcpy(&code[pos], line, len); in readline_shell_run() 660 pos += len; in readline_shell_run() 661 code[pos] = '\n'; in readline_shell_run() 662 code[++pos] = '\0'; in readline_shell_run() 672 if (!cli_is_valid_code(code, pos, &prompt)) { in readline_shell_run() 686 zend_eval_stringl(code, pos, NULL, "php shell code"); in readline_shell_run() [all …]
|
/PHP-8.0/main/ |
H A D | rfc1867.c | 479 while (*pos && *pos != stop) { in php_ap_getword() 481 ++pos; in php_ap_getword() 482 while (*pos && *pos != quote) { in php_ap_getword() 483 if (*pos == '\\' && pos[1] && pos[1] == quote) { in php_ap_getword() 484 pos += 2; in php_ap_getword() 486 ++pos; in php_ap_getword() 489 if (*pos) { in php_ap_getword() 490 ++pos; in php_ap_getword() 492 } else ++pos; in php_ap_getword() 503 ++pos; in php_ap_getword() [all …]
|
H A D | getopt.c | 88 const char *pos; in php_getopt() local 100 if ((pos = php_memnstr(&argv[*optind][arg_start], "=", 1, argv[*optind]+arg_end)) != NULL) { in php_getopt() 101 arg_end = pos-&argv[*optind][arg_start]; in php_getopt()
|
/PHP-8.0/ext/standard/ |
H A D | mail.c | 49 #define SKIP_LONG_HEADER_SEP(str, pos) \ argument 50 if (str[pos] == '\r' && str[pos + 1] == '\n' && (str[pos + 2] == ' ' || str[pos + 2] == '\t')) { \ 51 pos += 2; \ 52 while (str[pos + 1] == ' ' || str[pos + 1] == '\t') { \ 53 pos++; \
|
/PHP-8.0/ext/phar/ |
H A D | phar.c | 1930 if (!pos in phar_check_str() 1931 || (pos != ext_str && (*(pos - 1) == '/')) in phar_check_str() 1934 || !(*pos == '\0' || *pos == '/' || *pos == '.')) { in phar_check_str() 1943 if (!(pos && (*(pos - 1) != '/') in phar_check_str() 1985 if (pos && pos != filename) { in phar_detect_phar_fname_ext() 1987 if (*(pos - 1) == ':' && (size_t)(pos - filename) < filename_len - 1 && *(pos + 1) == '/') { in phar_detect_phar_fname_ext() 2066 if (!pos) { in phar_detect_phar_fname_ext() 2070 while (pos != filename && (*(pos - 1) == '/' || *(pos - 1) == '\0')) { in phar_detect_phar_fname_ext() 2071 pos = memchr(pos + 1, '.', filename_len - (pos - filename) - 1); in phar_detect_phar_fname_ext() 2103 pos = strchr(pos + 1, '.'); in phar_detect_phar_fname_ext() [all …]
|
/PHP-8.0/ext/sysvshm/ |
H A D | sysvshm.c | 401 zend_long pos; in php_check_shm_data() local 406 pos = ptr->start; in php_check_shm_data() 409 if (pos >= ptr->end) { in php_check_shm_data() 412 shm_var = (sysvshm_chunk*) ((char *) ptr + pos); in php_check_shm_data() 414 return pos; in php_check_shm_data() 416 pos += shm_var->next; in php_check_shm_data() 418 if (shm_var->next <= 0 || pos < ptr->start) { in php_check_shm_data()
|
/PHP-8.0/ext/hash/ |
H A D | hash.c | 155 *pos = align_to(*pos, alignment); in parse_serialize_spec() 227 size_t pos = 0, max_alignment = 1; in php_hash_serialize_spec() local 241 pos += count * sz; in php_hash_serialize_spec() 245 pos += count; in php_hash_serialize_spec() 249 pos += sz; in php_hash_serialize_spec() 288 pos += count * sz; in php_hash_unserialize_spec() 292 return -1000 - pos; in php_hash_unserialize_spec() 296 pos += count; in php_hash_unserialize_spec() 302 return -1000 - pos; in php_hash_unserialize_spec() 309 return -1000 - pos; in php_hash_unserialize_spec() [all …]
|
H A D | php_hash_whirlpool.h | 25 int pos; member
|
H A D | hash_sha3.c | 160 size_t len = block_size - ctx->pos; in PHP_SHA3_Update() 169 ctx->state[ctx->pos++] ^= *(buf++); in PHP_SHA3_Update() 172 if (ctx->pos >= block_size) { in PHP_SHA3_Update() 174 ctx->pos = 0; in PHP_SHA3_Update() 186 ctx->state[ctx->pos++] ^= 0x06; in PHP_SHA3_Final() 213 && ctx->pos < block_size) { in php_sha3_unserialize()
|
H A D | hash_whirlpool.c | 281 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate() 370 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate() 379 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal() 438 && ctx->buffer.pos >= 0 in php_whirlpool_unserialize() 439 && ctx->buffer.pos < (int) sizeof(ctx->buffer.data) in php_whirlpool_unserialize() 440 && ctx->buffer.bits >= ctx->buffer.pos * 8 in php_whirlpool_unserialize() 441 && ctx->buffer.bits < ctx->buffer.pos * 8 + 8) { in php_whirlpool_unserialize()
|
/PHP-8.0/sapi/litespeed/ |
H A D | lsapi_main.c | 369 zend_llist_position pos; in sapi_lsapi_send_headers_like_cgi() local 463 zend_llist_position pos; in sapi_lsapi_send_headers() local 474 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers() 479 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers() 891 cb(path_stop, pos, data); in walk_down_the_path() 893 while ((pos = skip_slash(pos))[0]) { in walk_down_the_path() 894 pos = strchr(pos, DEFAULT_SLASH); in walk_down_the_path() 895 if (!pos) { in walk_down_the_path() 901 cb(path_stop, pos, data); in walk_down_the_path() 1689 zend_llist_position pos; in PHP_FUNCTION() local [all …]
|
/PHP-8.0/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 97 zval *pos, tmp; in add_static_slot() local 103 pos = zend_hash_find(hash, key); in add_static_slot() 104 if (pos) { in add_static_slot() 105 ret = Z_LVAL_P(pos); in add_static_slot() 155 zval zv, *pos; in zend_optimizer_compact_literals() local 394 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 410 if ((pos = zend_hash_find(&hash, key)) != NULL in zend_optimizer_compact_literals() 412 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 432 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 446 if (key && (pos = zend_hash_find(&hash, key)) != NULL && in zend_optimizer_compact_literals() [all …]
|
/PHP-8.0/ext/spl/ |
H A D | php_spl.c | 302 char *pos, *pos1; in PHP_FUNCTION() local 314 pos = SPL_DEFAULT_FILE_EXTENSIONS; in PHP_FUNCTION() 317 pos = ZSTR_VAL(file_exts); in PHP_FUNCTION() 322 while (pos && *pos && !EG(exception)) { in PHP_FUNCTION() 323 pos1 = strchr(pos, ','); in PHP_FUNCTION() 325 pos1_len = (int)(pos1 - pos); in PHP_FUNCTION() 329 if (spl_autoload(class_name, lc_name, pos, pos1_len)) { in PHP_FUNCTION() 332 pos = pos1 ? pos1 + 1 : NULL; in PHP_FUNCTION() 422 HashPosition pos; in spl_perform_autoload() local 423 zend_hash_internal_pointer_reset_ex(SPL_G(autoload_functions), &pos); in spl_perform_autoload() [all …]
|
/PHP-8.0/ext/intl/breakiterator/ |
H A D | breakiterator_iterators.cpp | 67 int32_t pos = biter->next(); in _breakiterator_move_forward() local 68 if (pos != BreakIterator::DONE) { in _breakiterator_move_forward() 69 ZVAL_LONG(&zoi_iter->current, (zend_long)pos); in _breakiterator_move_forward() 78 int32_t pos = biter->first(); in _breakiterator_rewind() local 79 ZVAL_LONG(&zoi_iter->current, (zend_long)pos); in _breakiterator_rewind()
|
/PHP-8.0/ext/intl/grapheme/ |
H A D | grapheme_string.c | 617 int pos = 0; in grapheme_extract_charcount_iter() local 623 pos = ubrk_next(bi); in grapheme_extract_charcount_iter() 625 if ( UBRK_DONE == pos ) { in grapheme_extract_charcount_iter() 629 for ( break_pos = ret_pos; break_pos < pos; ) { in grapheme_extract_charcount_iter() 657 int pos = 0; in grapheme_extract_bytecount_iter() local 661 pos = ubrk_next(bi); in grapheme_extract_bytecount_iter() 663 if ( UBRK_DONE == pos ) { in grapheme_extract_bytecount_iter() 667 if ( pos > bsize ) { in grapheme_extract_bytecount_iter() 671 ret_pos = pos; in grapheme_extract_bytecount_iter()
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_log.c | 297 zend_llist_position pos; in fpm_log_write() local 301 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write() 305 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 309 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 315 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 320 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
|
/PHP-8.0/Zend/ |
H A D | zend_weakrefs.c | 471 return &EG(ht_iterators)[iter->ht_iter].pos; in zend_weakmap_iterator_get_pos_ptr() 485 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_valid() local 486 return zend_hash_has_more_elements_ex(&wm->ht, pos); in zend_weakmap_iterator_valid() 493 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_get_current_data() local 494 return zend_hash_get_current_data_ex(&wm->ht, pos); in zend_weakmap_iterator_get_current_data() 501 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_get_current_key() local 505 int key_type = zend_hash_get_current_key_ex(&wm->ht, &string_key, &num_key, pos); in zend_weakmap_iterator_get_current_key() 517 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_move_forward() local 518 zend_hash_move_forward_ex(&wm->ht, pos); in zend_weakmap_iterator_move_forward() 525 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_rewind() local [all …]
|