/PHP-7.4/Zend/tests/ |
H A D | bug78340.phpt | 9 private $bytes, $pos; 13 $this->pos= 0; 19 $chunk= substr($this->bytes, $this->pos, $count); 20 $this->pos+= strlen($chunk); 25 return $this->pos >= strlen($this->bytes);
|
/PHP-7.4/Zend/ |
H A D | zend_alloc.c | 570 if (pos != end) { 574 while (pos != end) { 581 bitset[pos] |= tmp; 587 bitset[pos] |= tmp; 602 if (pos != end) { 606 while (pos != end) { 608 bitset[pos++] = 0; 613 bitset[pos] &= ~tmp; 619 bitset[pos] &= ~tmp; 634 if (pos != end) { [all …]
|
H A D | zend_generators.c | 702 HashPosition pos = Z_FE_POS(generator->values); in zend_generator_get_next_delegated_value() local 706 if (UNEXPECTED(pos >= ht->nNumUsed)) { in zend_generator_get_next_delegated_value() 711 p = &ht->arData[pos]; in zend_generator_get_next_delegated_value() 716 pos++; in zend_generator_get_next_delegated_value() 729 Z_FE_POS(generator->values) = pos; in zend_generator_get_next_delegated_value()
|
H A D | zend_hash.c | 439 while (pos < ht->nNumUsed && Z_ISUNDEF(ht->arData[pos].val)) { in _zend_hash_get_valid_pos() 440 pos++; in _zend_hash_get_valid_pos() 442 return pos; in _zend_hash_get_valid_pos() 467 iter->pos = pos; in zend_hash_iterator_add() 485 iter->pos = pos; in zend_hash_iterator_add() 508 return iter->pos; in zend_hash_iterator_pos() 530 return iter->pos; in zend_hash_iterator_pos_ex() 582 if (iter->pos >= start && iter->pos < res) { in zend_hash_iterators_lower_pos() 2299 *pos = idx; in zend_hash_internal_pointer_end_ex() 2323 *pos = idx; in zend_hash_move_forward_ex() [all …]
|
H A D | zend_hash.h | 230 #define zend_hash_has_more_elements_ex(ht, pos) \ argument 231 (zend_hash_get_current_key_type_ex(ht, pos) == HASH_KEY_NON_EXISTENT ? FAILURE : SUCCESS) 232 ZEND_API int ZEND_FASTCALL zend_hash_move_forward_ex(HashTable *ht, HashPosition *pos); 233 ZEND_API int ZEND_FASTCALL zend_hash_move_backwards_ex(HashTable *ht, HashPosition *pos); 236 ZEND_API int ZEND_FASTCALL zend_hash_get_current_key_type_ex(HashTable *ht, HashPosition *pos); 237 ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos); 238 ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_reset_ex(HashTable *ht, HashPosition *pos); 239 ZEND_API void ZEND_FASTCALL zend_hash_internal_pointer_end_ex(HashTable *ht, HashPosition *pos); 310 ZEND_API uint32_t ZEND_FASTCALL zend_hash_iterator_add(HashTable *ht, HashPosition pos); 899 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_llist.c | 258 ZEND_API void *zend_llist_get_first_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_first_ex() argument 260 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_first_ex() 271 ZEND_API void *zend_llist_get_last_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_last_ex() argument 273 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_last_ex() 284 ZEND_API void *zend_llist_get_next_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_next_ex() argument 286 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_next_ex() 298 ZEND_API void *zend_llist_get_prev_ex(zend_llist *l, zend_llist_position *pos) in zend_llist_get_prev_ex() argument 300 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 | 2373 size_t pos=Z_STRLEN_P(str)-1; in increment_string() local 2397 ch = s[pos]; in increment_string() 2400 s[pos] = 'a'; in increment_string() 2403 s[pos]++; in increment_string() 2409 s[pos] = 'A'; in increment_string() 2412 s[pos]++; in increment_string() 2418 s[pos] = '0'; in increment_string() 2421 s[pos]++; in increment_string() 2432 } while (pos-- > 0); in increment_string()
|
H A D | zend_types.h | 366 HashPosition pos; member
|
H A D | zend_vm_def.h | 6466 HashPosition pos; variable 6495 pos++; 6538 pos++; 6554 EG(ht_iterators)[Z_FE_ITER_P(array)].pos = pos + 1; 6619 HashPosition pos; variable 6648 pos++; 6658 EG(ht_iterators)[Z_FE_ITER_P(EX_VAR(opline->op1.var))].pos = pos + 1; 6699 pos++; 6715 EG(ht_iterators)[Z_FE_ITER_P(EX_VAR(opline->op1.var))].pos = pos + 1; 9366 HashPosition pos; variable [all …]
|
H A D | zend_vm_execute.h | 21517 HashPosition pos; in ZEND_FE_FETCH_R_SPEC_VAR_HANDLER() local 21546 pos++; in ZEND_FE_FETCH_R_SPEC_VAR_HANDLER() 21589 pos++; in ZEND_FE_FETCH_R_SPEC_VAR_HANDLER() 21605 EG(ht_iterators)[Z_FE_ITER_P(array)].pos = pos + 1; in ZEND_FE_FETCH_R_SPEC_VAR_HANDLER() 21670 HashPosition pos; in ZEND_FE_FETCH_RW_SPEC_VAR_HANDLER() local 21699 pos++; in ZEND_FE_FETCH_RW_SPEC_VAR_HANDLER() 21750 pos++; in ZEND_FE_FETCH_RW_SPEC_VAR_HANDLER() 30217 HashPosition pos; in ZEND_FE_FETCH_R_SIMPLE_SPEC_VAR_CV_RETVAL_UNUSED_HANDLER() local 30244 pos++; in ZEND_FE_FETCH_R_SIMPLE_SPEC_VAR_CV_RETVAL_UNUSED_HANDLER() 30269 HashPosition pos; in ZEND_FE_FETCH_R_SIMPLE_SPEC_VAR_CV_RETVAL_USED_HANDLER() local [all …]
|
/PHP-7.4/build/ |
H A D | php.m4 | 1467 off64_t pos; 1477 { ((struct cookiedata*)cookie)->pos = *position; return 0; } 1485 if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
|
/PHP-7.4/ext/com_dotnet/ |
H A D | com_variant.c | 37 HashPosition pos; in safe_array_from_zval() local 45 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z), &pos); in safe_array_from_zval() 46 for (;; zend_hash_move_forward_ex(Z_ARRVAL_P(z), &pos)) { in safe_array_from_zval() 48 keytype = zend_hash_get_current_key_ex(Z_ARRVAL_P(z), &strindex, &intindex, &pos); in safe_array_from_zval() 70 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(z), &pos); in safe_array_from_zval() 71 for (;; zend_hash_move_forward_ex(Z_ARRVAL_P(z), &pos)) { in safe_array_from_zval() 72 if (NULL == (item = zend_hash_get_current_data_ex(Z_ARRVAL_P(z), &pos))) { in safe_array_from_zval() 75 zend_hash_get_current_key_ex(Z_ARRVAL_P(z), &strindex, &intindex, &pos); in safe_array_from_zval()
|
H A D | com_wrapper.c | 446 HashPosition pos; in generate_dispids() local 461 zend_hash_internal_pointer_reset_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids() 464 &pid, &pos))) { in generate_dispids() 473 zend_hash_move_forward_ex(Z_OBJPROP(disp->object), &pos); in generate_dispids() 498 &name, &pid, &pos))) { in generate_dispids() 508 zend_hash_move_forward_ex(&Z_OBJCE(disp->object)->function_table, &pos); in generate_dispids() 586 HashPosition pos; in php_com_wrapper_export_as_sink() local 600 zend_hash_internal_pointer_reset_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink() 602 zend_hash_get_current_key_ex(id_to_name, &name, &pid, &pos))) { in php_com_wrapper_export_as_sink() 606 ntmp = zend_hash_get_current_data_ex(id_to_name, &pos); in php_com_wrapper_export_as_sink() [all …]
|
/PHP-7.4/ext/curl/ |
H A D | multi.c | 141 zend_llist_position pos; in _php_curl_multi_find_easy_handle() local 144 for(pz_ch_temp = (zval *)zend_llist_get_first_ex(&mh->easyh, &pos); pz_ch_temp; in _php_curl_multi_find_easy_handle() 145 pz_ch_temp = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in _php_curl_multi_find_easy_handle() 278 zend_llist_position pos; in PHP_FUNCTION() local 282 for (pz_ch = (zval *)zend_llist_get_first_ex(&mh->easyh, &pos); pz_ch; in PHP_FUNCTION() 283 pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in PHP_FUNCTION() 412 zend_llist_position pos; in _php_curl_multi_close() local 416 for (pz_ch = (zval *)zend_llist_get_first_ex(&mh->easyh, &pos); pz_ch; in _php_curl_multi_close() 417 pz_ch = (zval *)zend_llist_get_next_ex(&mh->easyh, &pos)) { in _php_curl_multi_close()
|
/PHP-7.4/ext/date/lib/ |
H A D | parse_date.c | 136 uchar *lim, *str, *ptr, *cur, *tok, *pos; member 312 s->pos -= cnt; 321 s->pos = &buf[s->pos - s->bot]; 2618 s->pos = cursor; s->line++; in scan()
|
H A D | parse_date.re | 134 uchar *lim, *str, *ptr, *cur, *tok, *pos; 310 s->pos -= cnt; 319 s->pos = &buf[s->pos - s->bot]; 1812 s->pos = cursor; s->line++;
|
H A D | parse_iso_intervals.c | 75 uchar *lim, *str, *ptr, *cur, *tok, *pos; member 329 s->pos = cursor; s->line++; in scan()
|
H A D | parse_iso_intervals.re | 73 uchar *lim, *str, *ptr, *cur, *tok, *pos; 310 s->pos = cursor; s->line++;
|
H A D | parse_tz.c | 432 (*tzf) = &(tzdb->data[tzdb->index[mid].pos]); in seek_to_tz_position()
|
H A D | timelib.h | 307 unsigned int pos; member
|
/PHP-7.4/ext/date/ |
H A D | php_date.c | 4911 if (tzdb->data[table[i].pos + 5] == option[0] && tzdb->data[table[i].pos + 6] == option[1]) { in PHP_FUNCTION() 4914 …ROUP_ALL_W_BC || (check_id_allowed(table[i].id, what) && (tzdb->data[table[i].pos + 4] == '\1'))) { in PHP_FUNCTION()
|
/PHP-7.4/ext/dba/ |
H A D | dba.c | 205 HashPosition pos; local 212 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(key), &pos); 213 group = zend_hash_get_current_data_ex(Z_ARRVAL_P(key), &pos); 214 zend_hash_move_forward_ex(Z_ARRVAL_P(key), &pos); 215 name = zend_hash_get_current_data_ex(Z_ARRVAL_P(key), &pos);
|
H A D | dba_cdb.c | 58 uint32 pos; /* current position for traversing */ member 138 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument 142 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument 279 cdb->pos = 2048 + 4 + 4 + klen + dlen; in DBA_FIRSTKEY_FUNC() 296 CSEEK(cdb->pos); in DBA_NEXTKEY_FUNC() 310 cdb->pos += 8 + klen + dlen; in DBA_NEXTKEY_FUNC()
|
/PHP-7.4/ext/dba/libcdb/ |
H A D | cdb.c | 46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos) in cdb_match() argument 55 if (cdb_read(c, buf, n, pos) == -1) in cdb_match() 59 pos += n; in cdb_match() 104 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos) in cdb_read() argument 106 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read() 132 uint32 pos; in cdb_findnext() local 153 uint32_unpack(buf + 4, &pos); in cdb_findnext() 154 if (!pos) in cdb_findnext() 162 if (cdb_read(c, buf, 8, pos) == -1) in cdb_findnext() 166 switch(cdb_match(c, key, len, pos + 8)) { in cdb_findnext() [all …]
|