/php-src/ |
H A D | .gdbinit | 112 ____print_str (char*)$zvalue->value.str->val $zvalue->value.str->len 351 ____print_str (char*)$key->val $key->len 608 set $maxlen = $zstr->len 610 printf "string(%d) ", $zstr->len 611 ____print_str (char*)$zstr->val $zstr->len $maxlen
|
/php-src/Zend/Optimizer/ |
H A D | block_pass.c | 71 b->len--; in strip_leading_nops() 79 if (b->len == 0) { in strip_nops() 87 if (b->len == 0) { in strip_nops() 943 uint32_t len = 0; in assemble_code_blocks() local 960 b->len--; in assemble_code_blocks() 964 b->len--; in assemble_code_blocks() 966 len += b->len; in assemble_code_blocks() 1219 block->len--; in zend_jmp_optimization() 1647 bb->len = 0; in zend_merge_blocks() 1652 prev->len = b->start + b->len - prev->start; in zend_merge_blocks() [all …]
|
H A D | dce.c | 573 i = block->start + block->len; in dce_optimize_op_array()
|
H A D | dfa_pass.c | 142 if (b->len) { in zend_ssa_remove_nops() 153 b->len = 1; in zend_ssa_remove_nops() 157 old_end = b->start + b->len; in zend_ssa_remove_nops() 175 b->len = target - b->start; in zend_ssa_remove_nops() 189 b->len = 0; in zend_ssa_remove_nops() 561 while (block->len > 0) { in compress_block() 565 block->len--; in compress_block() 637 if (src->len > 0) { in zend_ssa_replace_control_link() 741 if (block->len == 0) { in zend_dfa_optimize_jmps() 767 if (block->len) { in zend_dfa_optimize_jmps() [all …]
|
H A D | scdf.c | 130 if (i == block->start + block->len - 1) { in scdf_solve() 156 if (block->len == 0) { in scdf_solve() 161 int j, end = block->start + block->len; in scdf_solve() 215 for (uint32_t i = block->start; i < block->start + block->len; 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() 267 removed_ops += block->len; in scdf_remove_unreachable_blocks()
|
H A D | ssa_integrity.c | 365 if (i != 0 && block->start < (block-1)->start + (block-1)->len) { in ssa_verify_integrity() 367 i, block->start, (block-1)->start + (block-1)->len); in ssa_verify_integrity() 369 if (i != cfg->blocks_count-1 && block->start + block->len > (block+1)->start) { in ssa_verify_integrity() 371 i, block->start + block->len, (block+1)->start); in ssa_verify_integrity() 374 for (j = block->start; j < block->start + block->len; j++) { in ssa_verify_integrity()
|
H A D | zend_cfg.c | 43 if (b->len != 0) { in zend_mark_reachable() 44 uint8_t opcode = opcodes[b->start + b->len - 1].opcode; in zend_mark_reachable() 211 for (j = b->start; j < b->start + b->len; j++) { in zend_mark_reachable_blocks() 475 blocks[0].len = 0; in zend_build_cfg() 482 blocks[blocks_count].len = i - blocks[blocks_count].start; in zend_build_cfg() 491 blocks[blocks_count].len = i - blocks[blocks_count].start; in zend_build_cfg() 498 if (block->len == 0) { in zend_build_cfg() 504 opline = op_array->opcodes + block->start + block->len - 1; in zend_build_cfg()
|
H A D | zend_cfg.h | 46 uint32_t len; /* number of opcodes */ member
|
H A D | zend_dfg.c | 278 end = opline + blocks[j].len; in zend_build_dfg()
|
H A D | zend_dump.c | 761 int len = 0; in zend_dump_op_line() local 769 len = fprintf(stderr, "%04u", (uint32_t)(opline - op_array->opcodes)); in zend_dump_op_line() 770 fprintf(stderr, "%*c", 5-len, ' '); in zend_dump_op_line() 833 if (b->len != 0) { in zend_dump_block_info() 834 fprintf(stderr, " lines=[%d-%d]", b->start, b->start + b->len - 1); in zend_dump_block_info() 1037 end = opline + b->len; in zend_dump_op_array()
|
H A D | zend_inference.c | 64 #define WHILE_WORKLIST(worklist, len, i) do { \ argument 68 ZEND_BITSET_FOREACH(worklist, len, i) { \ 201 while (stack->len > 0) { 398 while (vstack->len > 0) { in zend_ssa_check_scc_var() 425 while (stack->len > 0) { in zend_ssa_check_scc_var() 4591 if ((blocks[j].flags & ZEND_BB_REACHABLE) && blocks[j].len != 0) { in zend_func_return_info() 4592 zend_op *opline = op_array->opcodes + blocks[j].start + blocks[j].len - 1; in zend_func_return_info()
|
H A D | zend_ssa.c | 248 zend_op *opline = op_array->opcodes + blocks[j].start + blocks[j].len - 1; in place_essa_pis() 252 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0 || blocks[j].len == 0) { in place_essa_pis() 290 if (blocks[j].len == 1) { in place_essa_pis() 852 end = opline + blocks[n].len; in zend_ssa_rename() 860 zend_ssa_op *fe_fetch_ssa_op = blocks[n].len != 0 in zend_ssa_rename() 863 ? &ssa_ops[blocks[n].start + blocks[n].len - 1] : NULL; in zend_ssa_rename() 1517 for (j = block->start; j < block->start + block->len; j++) { in zend_ssa_remove_block()
|
H A D | zend_ssa.h | 321 uint32_t _end = _block->start + _block->len; \
|
H A D | zend_worklist.h | 27 int len; member 33 (s)->len = 0; \ 42 ZEND_ASSERT(len >= 0); in zend_worklist_stack_prepare() 45 stack->len = 0; in zend_worklist_stack_prepare() 46 stack->capacity = len; in zend_worklist_stack_prepare() 52 stack->buf[stack->len++] = i; in zend_worklist_stack_push() 57 ZEND_ASSERT(stack->len); in zend_worklist_stack_peek() 63 ZEND_ASSERT(stack->len); in zend_worklist_stack_pop() 74 (w)->stack.len = 0; \ 85 ZEND_ASSERT(len >= 0); in zend_worklist_prepare() [all …]
|
/php-src/Zend/ |
H A D | bench.php | 342 $len = strlen($str); 343 print "$len\n";
|
H A D | zend.c | 286 if (max_len && buf.len > max_len) { in ZEND_INI_END() 287 buf.len = max_len; in ZEND_INI_END() 294 return buf.len; in ZEND_INI_END() 305 size_t len; in zend_spprintf() local 310 return len; in zend_spprintf() 317 size_t len; in zend_spprintf_unchecked() local 322 return len; in zend_spprintf_unchecked() 459 size_t len = ZSTR_LEN(str); in zend_print_zval() local 461 if (len != 0) { in zend_print_zval() 462 zend_write(ZSTR_VAL(str), len); in zend_print_zval() [all …]
|
H A D | zend_API.c | 4612 …lt zend_try_assign_typed_ref_stringl(zend_reference *ref, const char *string, size_t len) /* {{{ */ in zend_try_assign_typed_ref_stringl() argument 4616 ZVAL_STRINGL(&tmp, string, len); in zend_try_assign_typed_ref_stringl() 5205 static zend_string *try_parse_string(const char *str, size_t len, char quote) { in try_parse_string() argument 5206 if (len == 0) { in try_parse_string() 5210 for (size_t i = 0; i < len; i++) { in try_parse_string() 5215 return zend_string_init(str, len, 0); in try_parse_string()
|
H A D | zend_API.h | 891 ZEND_API zend_result zend_set_local_var_str(const char *name, size_t len, zval *value, bool force); 1092 …zend_result zend_try_assign_typed_ref_stringl(zend_reference *ref, const char *string, size_t len); 1318 #define _ZEND_TRY_ASSIGN_STRINGL(zv, string, len, is_ref) do { \ argument 1323 zend_try_assign_typed_ref_stringl(ref, string, len); \ 1329 ZVAL_STRINGL(_zv, string, len); \ 1332 #define ZEND_TRY_ASSIGN_STRINGL(zv, string, len) \ argument 1333 _ZEND_TRY_ASSIGN_STRINGL(zv, string, len, 0) 1335 #define ZEND_TRY_ASSIGN_REF_STRINGL(zv, string, len) do { \ argument 1337 _ZEND_TRY_ASSIGN_STRINGL(zv, string, len, 1); \
|
H A D | zend_alloc.c | 599 if (len == 1) { 631 if (len == 1) { 663 if (len == 1) { 884 uint32_t page_num, len; local 921 len = i - page_num; 970 if (len >= pages_count && len < best_len) { 992 best_len = len; 3087 void *tmp = malloc(len); 3098 len = zend_safe_address_guarded(nmemb, len, 0); 3100 memset(tmp, 0, len); [all …]
|
H A D | zend_alloc.h | 181 ZEND_API ZEND_ATTRIBUTE_MALLOC void * __zend_malloc(size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORI… 182 ZEND_API ZEND_ATTRIBUTE_MALLOC void * __zend_calloc(size_t nmemb, size_t len ZEND_FILE_LINE_DC ZEND… 183 ZEND_API void * __zend_realloc(void *p, size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_A…
|
H A D | zend_ast.c | 1344 static ZEND_COLD bool zend_ast_valid_var_name(const char *s, size_t len) in zend_ast_valid_var_name() argument 1349 if (len == 0) { in zend_ast_valid_var_name() 1358 for (i = 1; i < len; i++) { in zend_ast_valid_var_name()
|
H A D | zend_attributes.c | 160 static zend_attribute *get_attribute_str(HashTable *attributes, const char *str, size_t len, uint32… in get_attribute_str() argument 166 if (attr->offset == offset && zend_string_equals_cstr(attr->lcname, str, len)) { in get_attribute_str() 180 ZEND_API zend_attribute *zend_get_attribute_str(HashTable *attributes, const char *str, size_t len) in zend_get_attribute_str() argument 182 return get_attribute_str(attributes, str, len, 0); in zend_get_attribute_str() 190 …nd_get_parameter_attribute_str(HashTable *attributes, const char *str, size_t len, uint32_t offset) in zend_get_parameter_attribute_str() argument 192 return get_attribute_str(attributes, str, len, offset + 1); in zend_get_parameter_attribute_str()
|
/php-src/Zend/tests/ |
H A D | bug26696.phpt | 6 $len = strlen($str); 7 for ($i = 0; $i < $len; $i++) {
|
H A D | call_user_func_array_array_slice_type.phpt | 9 $len = []; 10 call_user_func_array('var_dump', array_slice($array, 0, $len)); 15 $len = 2.0; 16 call_user_func_array('var_dump', array_slice($array, 0, $len)); 18 $len = null; 19 call_user_func_array('var_dump', array_slice($array, 1, $len));
|
H A D | call_user_func_array_array_slice_type_strict.phpt | 10 $len = []; 11 call_user_func_array('var_dump', array_slice($array, 0, $len)); 17 $len = 2.0; 18 call_user_func_array('var_dump', array_slice($array, 0, $len)); 23 $len = null; 24 call_user_func_array('var_dump', array_slice($array, 1, $len));
|