/php-src/Zend/Optimizer/ |
H A D | compact_literals.c | 100 zval *pos, tmp; in add_static_slot() local 106 pos = zend_hash_find(hash, key); in add_static_slot() 107 if (pos) { in add_static_slot() 108 ret = Z_LVAL_P(pos); in add_static_slot() 159 zval zv, *pos; in zend_optimizer_compact_literals() local 359 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 376 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 398 if ((pos = zend_hash_find(&hash, key))) { in zend_optimizer_compact_literals() 399 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 414 if ((pos = zend_hash_find(&hash, key)) != NULL) { in zend_optimizer_compact_literals() [all …]
|
/php-src/Zend/tests/ |
H A D | bug78340.phpt | 10 private $bytes, $pos, $ino; 14 $this->pos= 0; 20 $chunk= substr($this->bytes, $this->pos, $count); 21 $this->pos+= strlen($chunk); 26 return $this->pos >= strlen($this->bytes);
|
/php-src/Zend/ |
H A D | zend_alloc.c | 607 if (pos != end) { 611 while (pos != end) { 618 bitset[pos] |= tmp; 624 bitset[pos] |= tmp; 639 if (pos != end) { 643 while (pos != end) { 645 bitset[pos++] = 0; 650 bitset[pos] &= ~tmp; 656 bitset[pos] &= ~tmp; 671 if (pos != end) { [all …]
|
H A D | zend_call_stack.h | 47 void *pos = (void*)&a; in zend_call_stack_position() 48 return pos; in zend_call_stack_position()
|
H A D | zend_generators.c | 609 HashPosition pos = Z_FE_POS(generator->values); in zend_generator_get_next_delegated_value() local 613 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value() 618 value = &ht->arPacked[pos]; in zend_generator_get_next_delegated_value() 619 pos++; in zend_generator_get_next_delegated_value() 626 ZVAL_LONG(&generator->key, pos - 1); in zend_generator_get_next_delegated_value() 631 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value() 636 p = &ht->arData[pos]; in zend_generator_get_next_delegated_value() 638 pos++; in zend_generator_get_next_delegated_value() 651 Z_FE_POS(generator->values) = pos; in zend_generator_get_next_delegated_value()
|
H A D | zend_hash.c | 496 while (pos < ht->nNumUsed && Z_ISUNDEF(ht->arPacked[pos])) { in _zend_hash_get_valid_pos() 497 pos++; in _zend_hash_get_valid_pos() 501 pos++; in _zend_hash_get_valid_pos() 504 return pos; in _zend_hash_get_valid_pos() 544 iter->pos = pos; in zend_hash_iterator_add() 563 iter->pos = pos; in zend_hash_iterator_add() 591 iter->pos = copy_iter->pos; in zend_hash_iterator_find_copy_pos() 697 if (iter->pos >= start && iter->pos < res) { in zend_hash_iterators_lower_pos() 1434 iter->pos = MIN(iter->pos, max); in zend_hash_iterators_clamp_max() 2748 *pos = idx; in zend_hash_internal_pointer_end_ex() [all …]
|
H A D | zend_hash.h | 250 ZEND_API zend_result ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); 251 ZEND_API zend_result ZEND_FASTCALL zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos); 254 ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); 255 ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); 256 ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); 257 ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_end_ex(HashTable *ht, HashPosition *pos); 259 …c zend_always_inline zend_result zend_hash_has_more_elements_ex(HashTable *ht, HashPosition *pos) { in zend_hash_has_more_elements_ex() argument 260 return (zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS); in zend_hash_has_more_elements_ex() 346 ZEND_API uint32_t ZEND_FASTCALL zend_hash_iterator_add(HashTable *ht, HashPosition pos); 963 static zend_always_inline void *zend_hash_get_current_data_ptr_ex(HashTable *ht, HashPosition *pos) in zend_hash_get_current_data_ptr_ex() argument [all …]
|
H A D | zend_inheritance.c | 2814 HashPosition pos = 0; in load_delayed_classes() local 2817 while (zend_hash_get_current_key_ex(delayed_autoloads, &name, &idx, &pos) in load_delayed_classes()
|
H A D | zend_llist.c | 260 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_first_ex() argument 262 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_first_ex() 273 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_last_ex() argument 275 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_last_ex() 286 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_next_ex() argument 288 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_next_ex() 300 ZEND_API void *zend_llist_get_prev_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_prev_ex() argument 302 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_prev_ex()
|
H A D | zend_llist.h | 64 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos); 65 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos); 66 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos); 67 ZEND_API void *zend_llist_get_prev_ex(zend_llist *l, zend_llist_position *pos);
|
H A D | zend_operators.c | 2512 size_t pos=Z_STRLEN_P(str)-1; in increment_string() local 2555 ch = s[pos]; in increment_string() 2558 s[pos] = 'a'; in increment_string() 2561 s[pos]++; in increment_string() 2567 s[pos] = 'A'; in increment_string() 2570 s[pos]++; in increment_string() 2576 s[pos] = '0'; in increment_string() 2579 s[pos]++; in increment_string() 2590 } while (pos-- > 0); in increment_string()
|
H A D | zend_types.h | 552 HashPosition pos; member
|
H A D | zend_vm_def.h | 6896 HashPosition pos; in ZEND_VM_HELPER() local 6915 pos++; in ZEND_VM_HELPER() 6934 EG(ht_iterators)[Z_FE_ITER_P(array)].pos = pos; in ZEND_VM_HELPER() 7014 HashPosition pos; variable 7035 pos++; 7052 pos++; 7116 pos++; 7130 pos++; 7162 pos++; 10193 pos++; [all …]
|
H A D | zend_vm_execute.h | 2863 pos++; in zend_fe_fetch_object_helper_SPEC() 2882 EG(ht_iterators)[Z_FE_ITER_P(array)].pos = pos; in zend_fe_fetch_object_helper_SPEC() 22487 pos++; in ZEND_FE_FETCH_R_SPEC_VAR_HANDLER() 22504 pos++; in ZEND_FE_FETCH_R_SPEC_VAR_HANDLER() 22568 pos++; in ZEND_FE_FETCH_RW_SPEC_VAR_HANDLER() 22582 pos++; in ZEND_FE_FETCH_RW_SPEC_VAR_HANDLER() 22614 pos++; in ZEND_FE_FETCH_RW_SPEC_VAR_HANDLER() 32559 pos++; in ZEND_FE_FETCH_R_SIMPLE_SPEC_VAR_CV_RETVAL_UNUSED_HANDLER() 32576 pos++; in ZEND_FE_FETCH_R_SIMPLE_SPEC_VAR_CV_RETVAL_UNUSED_HANDLER() 32627 pos++; in ZEND_FE_FETCH_R_SIMPLE_SPEC_VAR_CV_RETVAL_USED_HANDLER() [all …]
|
H A D | zend_weakrefs.c | 609 return &EG(ht_iterators)[iter->ht_iter].pos; in zend_weakmap_iterator_get_pos_ptr() 623 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_valid() local 624 return zend_hash_has_more_elements_ex(&wm->ht, pos); in zend_weakmap_iterator_valid() 631 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_get_current_data() local 632 return zend_hash_get_current_data_ex(&wm->ht, pos); in zend_weakmap_iterator_get_current_data() 639 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_get_current_key() local 643 int key_type = zend_hash_get_current_key_ex(&wm->ht, &string_key, &num_key, pos); in zend_weakmap_iterator_get_current_key() 655 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_move_forward() local 656 zend_hash_move_forward_ex(&wm->ht, pos); in zend_weakmap_iterator_move_forward() 663 HashPosition *pos = zend_weakmap_iterator_get_pos_ptr(iter); in zend_weakmap_iterator_rewind() local [all …]
|
/php-src/build/ |
H A D | gen_stub.php | 960 if (($pos = strrpos($name, '\\')) !== false) { 961 $name = substr($name, $pos + 1);
|
H A D | php.m4 | 1356 off64_t pos; 1366 { ((struct cookiedata*)cookie)->pos = *position; return 0; } 1374 if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
|
/php-src/ext/com_dotnet/ |
H A D | com_variant.c | 35 HashPosition pos; in safe_array_from_zval() local 43 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z), &pos); in safe_array_from_zval() 44 for (;; zend_hash_move_forward_ex(Z_ARRVAL_P(z), &pos)) { in safe_array_from_zval() 46 keytype = zend_hash_get_current_key_ex(Z_ARRVAL_P(z), &strindex, &intindex, &pos); in safe_array_from_zval() 68 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z), &pos); in safe_array_from_zval() 69 for (;; zend_hash_move_forward_ex(Z_ARRVAL_P(z), &pos)) { in safe_array_from_zval() 70 if (NULL == (item = zend_hash_get_current_data_ex(Z_ARRVAL_P(z), &pos))) { in safe_array_from_zval() 73 zend_hash_get_current_key_ex(Z_ARRVAL_P(z), &strindex, &intindex, &pos); in safe_array_from_zval()
|
H A D | com_wrapper.c | 442 HashPosition pos; in generate_dispids() local 457 zend_hash_internal_pointer_reset_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids() 460 &pid, &pos))) { in generate_dispids() 469 zend_hash_move_forward_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids() 494 &name, &pid, &pos))) { in generate_dispids() 504 zend_hash_move_forward_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids() 582 HashPosition pos; in php_com_wrapper_export_as_sink() local 596 zend_hash_internal_pointer_reset_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink() 598 zend_hash_get_current_key_ex(id_to_name, &name, &pid, &pos))) { in php_com_wrapper_export_as_sink() 602 ntmp = zend_hash_get_current_data_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink() [all …]
|
/php-src/ext/curl/ |
H A D | multi.c | 131 zend_llist_position pos; in _php_curl_multi_find_easy_handle() local 135 pz_ch_temp = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in _php_curl_multi_find_easy_handle() 217 zend_llist_position pos; in PHP_FUNCTION() local 221 for (pz_ch = (zval *)zend_llist_get_first_ex(&mh->easyh, &pos); pz_ch; in PHP_FUNCTION() 222 pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in PHP_FUNCTION() 314 zend_llist_position pos; in PHP_FUNCTION() local 323 for (pz_ch = (zval *)zend_llist_get_first_ex(&mh->easyh, &pos); pz_ch; in PHP_FUNCTION() 324 pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in PHP_FUNCTION() 523 zend_llist_position pos; in curl_multi_free_obj() local 534 pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in curl_multi_free_obj() [all …]
|
/php-src/ext/date/lib/ |
H A D | parse_date.c | 138 uchar *lim, *str, *ptr, *cur, *tok, *pos; member 329 s->pos -= cnt; 338 s->pos = &buf[s->pos - s->bot]; 1204 s->pos = cursor; s->line++; in scan()
|
H A D | parse_date.re | 136 uchar *lim, *str, *ptr, *cur, *tok, *pos; 327 s->pos -= cnt; 336 s->pos = &buf[s->pos - s->bot]; 1981 s->pos = cursor; s->line++;
|
H A D | parse_iso_intervals.c | 75 uchar *lim, *str, *ptr, *cur, *tok, *pos; member 331 s->pos = cursor; s->line++; in scan()
|
H A D | parse_iso_intervals.re | 73 uchar *lim, *str, *ptr, *cur, *tok, *pos; 312 s->pos = cursor; s->line++;
|
H A D | parse_tz.c | 597 (*tzf) = &(tzdb->data[tzdb->index[mid].pos]); in seek_to_tz_position()
|