Lines Matching refs:p

427 	Bucket *p, *end, *arData;  in zend_hash_discard()  local
432 p = arData + ht->nNumUsed; in zend_hash_discard()
435 while (p != end) { in zend_hash_discard()
436 p--; in zend_hash_discard()
437 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_discard()
441 if (!(Z_NEXT(p->val) == HT_INVALID_IDX || HT_HASH_TO_BUCKET_EX(arData, Z_NEXT(p->val)) < p)) { in zend_hash_discard()
445 nIndex = p->h | ht->nTableMask; in zend_hash_discard()
446 HT_HASH_EX(arData, nIndex) = Z_NEXT(p->val); in zend_hash_discard()
674 Bucket *p, *arData; in zend_hash_find_bucket() local
685 p = HT_HASH_TO_BUCKET_EX(arData, idx); in zend_hash_find_bucket()
686 if (EXPECTED(p->key == key)) { /* check for the same interned string */ in zend_hash_find_bucket()
687 return p; in zend_hash_find_bucket()
691 if (p->h == ZSTR_H(key) && in zend_hash_find_bucket()
692 EXPECTED(p->key) && in zend_hash_find_bucket()
693 zend_string_equal_content(p->key, key)) { in zend_hash_find_bucket()
694 return p; in zend_hash_find_bucket()
696 idx = Z_NEXT(p->val); in zend_hash_find_bucket()
700 p = HT_HASH_TO_BUCKET_EX(arData, idx); in zend_hash_find_bucket()
701 if (p->key == key) { /* check for the same interned string */ in zend_hash_find_bucket()
702 return p; in zend_hash_find_bucket()
711 Bucket *p, *arData; in zend_hash_str_find_bucket() local
718 p = HT_HASH_TO_BUCKET_EX(arData, idx); in zend_hash_str_find_bucket()
719 if ((p->h == h) in zend_hash_str_find_bucket()
720 && p->key in zend_hash_str_find_bucket()
721 && zend_string_equals_cstr(p->key, str, len)) { in zend_hash_str_find_bucket()
722 return p; in zend_hash_str_find_bucket()
724 idx = Z_NEXT(p->val); in zend_hash_str_find_bucket()
733 Bucket *p, *arData; in zend_hash_index_find_bucket() local
740 p = HT_HASH_TO_BUCKET_EX(arData, idx); in zend_hash_index_find_bucket()
741 if (p->h == h && !p->key) { in zend_hash_index_find_bucket()
742 return p; in zend_hash_index_find_bucket()
744 idx = Z_NEXT(p->val); in zend_hash_index_find_bucket()
754 Bucket *p, *arData; in _zend_hash_add_or_update_i() local
768 p = zend_hash_find_bucket(ht, key); in _zend_hash_add_or_update_i()
770 if (p) { in _zend_hash_add_or_update_i()
775 return &p->val; in _zend_hash_add_or_update_i()
780 ZEND_ASSERT(&p->val != pData); in _zend_hash_add_or_update_i()
781 data = &p->val; in _zend_hash_add_or_update_i()
791 ZEND_ASSERT(&p->val != pData); in _zend_hash_add_or_update_i()
792 data = &p->val; in _zend_hash_add_or_update_i()
815 p = arData + idx; in _zend_hash_add_or_update_i()
816 p->key = key; in _zend_hash_add_or_update_i()
817 p->h = h = ZSTR_H(key); in _zend_hash_add_or_update_i()
819 Z_NEXT(p->val) = HT_HASH_EX(arData, nIndex); in _zend_hash_add_or_update_i()
822 ZVAL_NULL(&p->val); in _zend_hash_add_or_update_i()
824 ZVAL_COPY_VALUE(&p->val, pData); in _zend_hash_add_or_update_i()
827 return &p->val; in _zend_hash_add_or_update_i()
835 Bucket *p; in _zend_hash_str_add_or_update_i() local
848 p = zend_hash_str_find_bucket(ht, str, len, h); in _zend_hash_str_add_or_update_i()
850 if (p) { in _zend_hash_str_add_or_update_i()
854 return &p->val; in _zend_hash_str_add_or_update_i()
859 ZEND_ASSERT(&p->val != pData); in _zend_hash_str_add_or_update_i()
860 data = &p->val; in _zend_hash_str_add_or_update_i()
870 ZEND_ASSERT(&p->val != pData); in _zend_hash_str_add_or_update_i()
871 data = &p->val; in _zend_hash_str_add_or_update_i()
889 p = ht->arData + idx; in _zend_hash_str_add_or_update_i()
890 p->key = key = zend_string_init(str, len, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in _zend_hash_str_add_or_update_i()
896 p->h = ZSTR_H(key) = h; in _zend_hash_str_add_or_update_i()
899 ZVAL_NULL(&p->val); in _zend_hash_str_add_or_update_i()
901 ZVAL_COPY_VALUE(&p->val, pData); in _zend_hash_str_add_or_update_i()
904 Z_NEXT(p->val) = HT_HASH(ht, nIndex); in _zend_hash_str_add_or_update_i()
907 return &p->val; in _zend_hash_str_add_or_update_i()
1019 Bucket *p; in _zend_hash_index_add_or_update_i() local
1090 p = zend_hash_index_find_bucket(ht, h); in _zend_hash_index_add_or_update_i()
1091 if (p) { in _zend_hash_index_add_or_update_i()
1093 return &p->val; in _zend_hash_index_add_or_update_i()
1096 zv = &p->val; in _zend_hash_index_add_or_update_i()
1105 p = ht->arData + idx; in _zend_hash_index_add_or_update_i()
1106 Z_NEXT(p->val) = HT_HASH(ht, nIndex); in _zend_hash_index_add_or_update_i()
1112 p->h = h; in _zend_hash_index_add_or_update_i()
1113 p->key = NULL; in _zend_hash_index_add_or_update_i()
1115 ZVAL_NULL(&p->val); in _zend_hash_index_add_or_update_i()
1117 ZVAL_COPY_VALUE(&p->val, pData); in _zend_hash_index_add_or_update_i()
1120 return &p->val; in _zend_hash_index_add_or_update_i()
1175 Bucket *p, *arData; in zend_hash_set_bucket_key() local
1182 p = zend_hash_find_bucket(ht, key); in zend_hash_set_bucket_key()
1183 if (UNEXPECTED(p)) { in zend_hash_set_bucket_key()
1184 return (p == b) ? &p->val : NULL; in zend_hash_set_bucket_key()
1201 p = HT_HASH_TO_BUCKET_EX(arData, i); in zend_hash_set_bucket_key()
1202 while (Z_NEXT(p->val) != idx) { in zend_hash_set_bucket_key()
1203 i = Z_NEXT(p->val); in zend_hash_set_bucket_key()
1204 p = HT_HASH_TO_BUCKET_EX(arData, i); in zend_hash_set_bucket_key()
1206 Z_NEXT(p->val) = Z_NEXT(b->val); in zend_hash_set_bucket_key()
1221 p = HT_HASH_TO_BUCKET_EX(arData, i); in zend_hash_set_bucket_key()
1222 while (Z_NEXT(p->val) != HT_INVALID_IDX && Z_NEXT(p->val) > idx) { in zend_hash_set_bucket_key()
1223 i = Z_NEXT(p->val); in zend_hash_set_bucket_key()
1224 p = HT_HASH_TO_BUCKET_EX(arData, i); in zend_hash_set_bucket_key()
1226 Z_NEXT(b->val) = Z_NEXT(p->val); in zend_hash_set_bucket_key()
1227 Z_NEXT(p->val) = idx; in zend_hash_set_bucket_key()
1262 Bucket *p; in zend_hash_rehash() local
1277 p = ht->arData; in zend_hash_rehash()
1280 nIndex = p->h | ht->nTableMask; in zend_hash_rehash()
1281 Z_NEXT(p->val) = HT_HASH(ht, nIndex); in zend_hash_rehash()
1283 p++; in zend_hash_rehash()
1288 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) { in zend_hash_rehash()
1290 Bucket *q = p; in zend_hash_rehash()
1294 p++; in zend_hash_rehash()
1295 if (EXPECTED(Z_TYPE_INFO(p->val) != IS_UNDEF)) { in zend_hash_rehash()
1296 ZVAL_COPY_VALUE(&q->val, &p->val); in zend_hash_rehash()
1297 q->h = p->h; in zend_hash_rehash()
1299 q->key = p->key; in zend_hash_rehash()
1313 p++; in zend_hash_rehash()
1314 if (EXPECTED(Z_TYPE_INFO(p->val) != IS_UNDEF)) { in zend_hash_rehash()
1315 ZVAL_COPY_VALUE(&q->val, &p->val); in zend_hash_rehash()
1316 q->h = p->h; in zend_hash_rehash()
1318 q->key = p->key; in zend_hash_rehash()
1338 nIndex = p->h | ht->nTableMask; in zend_hash_rehash()
1339 Z_NEXT(p->val) = HT_HASH(ht, nIndex); in zend_hash_rehash()
1341 p++; in zend_hash_rehash()
1389 static zend_always_inline void _zend_hash_del_el_ex(HashTable *ht, uint32_t idx, Bucket *p, Bucket … in _zend_hash_del_el_ex() argument
1392 Z_NEXT(prev->val) = Z_NEXT(p->val); in _zend_hash_del_el_ex()
1394 HT_HASH(ht, p->h | ht->nTableMask) = Z_NEXT(p->val); in _zend_hash_del_el_ex()
1423 ZVAL_COPY_VALUE(&tmp, &p->val); in _zend_hash_del_el_ex()
1424 ZVAL_UNDEF(&p->val); in _zend_hash_del_el_ex()
1427 ZVAL_UNDEF(&p->val); in _zend_hash_del_el_ex()
1431 static zend_always_inline void _zend_hash_del_el(HashTable *ht, uint32_t idx, Bucket *p) in _zend_hash_del_el() argument
1437 nIndex = p->h | ht->nTableMask; in _zend_hash_del_el()
1448 if (p->key) { in _zend_hash_del_el()
1449 zend_string_release(p->key); in _zend_hash_del_el()
1450 p->key = NULL; in _zend_hash_del_el()
1452 _zend_hash_del_el_ex(ht, idx, p, prev); in _zend_hash_del_el()
1464 ZEND_API void ZEND_FASTCALL zend_hash_del_bucket(HashTable *ht, Bucket *p) in zend_hash_del_bucket() argument
1469 _zend_hash_del_el(ht, HT_IDX_TO_HASH(p - ht->arData), p); in zend_hash_del_bucket()
1477 Bucket *p; in zend_hash_del() local
1488 p = HT_HASH_TO_BUCKET(ht, idx); in zend_hash_del()
1489 if ((p->key == key) || in zend_hash_del()
1490 (p->h == h && in zend_hash_del()
1491 p->key && in zend_hash_del()
1492 zend_string_equal_content(p->key, key))) { in zend_hash_del()
1493 zend_string_release(p->key); in zend_hash_del()
1494 p->key = NULL; in zend_hash_del()
1495 _zend_hash_del_el_ex(ht, idx, p, prev); in zend_hash_del()
1498 prev = p; in zend_hash_del()
1499 idx = Z_NEXT(p->val); in zend_hash_del()
1509 Bucket *p; in zend_hash_del_ind() local
1520 p = HT_HASH_TO_BUCKET(ht, idx); in zend_hash_del_ind()
1521 if ((p->key == key) || in zend_hash_del_ind()
1522 (p->h == h && in zend_hash_del_ind()
1523 p->key && in zend_hash_del_ind()
1524 zend_string_equal_content(p->key, key))) { in zend_hash_del_ind()
1525 if (Z_TYPE(p->val) == IS_INDIRECT) { in zend_hash_del_ind()
1526 zval *data = Z_INDIRECT(p->val); in zend_hash_del_ind()
1542 zend_string_release(p->key); in zend_hash_del_ind()
1543 p->key = NULL; in zend_hash_del_ind()
1544 _zend_hash_del_el_ex(ht, idx, p, prev); in zend_hash_del_ind()
1548 prev = p; in zend_hash_del_ind()
1549 idx = Z_NEXT(p->val); in zend_hash_del_ind()
1559 Bucket *p; in zend_hash_str_del_ind() local
1570 p = HT_HASH_TO_BUCKET(ht, idx); in zend_hash_str_del_ind()
1571 if ((p->h == h) in zend_hash_str_del_ind()
1572 && p->key in zend_hash_str_del_ind()
1573 && zend_string_equals_cstr(p->key, str, len)) { in zend_hash_str_del_ind()
1574 if (Z_TYPE(p->val) == IS_INDIRECT) { in zend_hash_str_del_ind()
1575 zval *data = Z_INDIRECT(p->val); in zend_hash_str_del_ind()
1587 zend_string_release(p->key); in zend_hash_str_del_ind()
1588 p->key = NULL; in zend_hash_str_del_ind()
1589 _zend_hash_del_el_ex(ht, idx, p, prev); in zend_hash_str_del_ind()
1593 prev = p; in zend_hash_str_del_ind()
1594 idx = Z_NEXT(p->val); in zend_hash_str_del_ind()
1604 Bucket *p; in zend_hash_str_del() local
1615 p = HT_HASH_TO_BUCKET(ht, idx); in zend_hash_str_del()
1616 if ((p->h == h) in zend_hash_str_del()
1617 && p->key in zend_hash_str_del()
1618 && zend_string_equals_cstr(p->key, str, len)) { in zend_hash_str_del()
1619 zend_string_release(p->key); in zend_hash_str_del()
1620 p->key = NULL; in zend_hash_str_del()
1621 _zend_hash_del_el_ex(ht, idx, p, prev); in zend_hash_str_del()
1624 prev = p; in zend_hash_str_del()
1625 idx = Z_NEXT(p->val); in zend_hash_str_del()
1634 Bucket *p; in zend_hash_index_del() local
1654 p = HT_HASH_TO_BUCKET(ht, idx); in zend_hash_index_del()
1655 if ((p->h == h) && (p->key == NULL)) { in zend_hash_index_del()
1656 _zend_hash_del_el_ex(ht, idx, p, prev); in zend_hash_index_del()
1659 prev = p; in zend_hash_index_del()
1660 idx = Z_NEXT(p->val); in zend_hash_index_del()
1692 Bucket *p = ht->arData; in zend_hash_destroy() local
1693 Bucket *end = p + ht->nNumUsed; in zend_hash_destroy()
1701 ht->pDestructor(&p->val); in zend_hash_destroy()
1702 } while (++p != end); in zend_hash_destroy()
1705 if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { in zend_hash_destroy()
1706 ht->pDestructor(&p->val); in zend_hash_destroy()
1708 } while (++p != end); in zend_hash_destroy()
1712 ht->pDestructor(&p->val); in zend_hash_destroy()
1713 if (EXPECTED(p->key)) { in zend_hash_destroy()
1714 zend_string_release(p->key); in zend_hash_destroy()
1716 } while (++p != end); in zend_hash_destroy()
1719 if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { in zend_hash_destroy()
1720 ht->pDestructor(&p->val); in zend_hash_destroy()
1721 if (EXPECTED(p->key)) { in zend_hash_destroy()
1722 zend_string_release(p->key); in zend_hash_destroy()
1725 } while (++p != end); in zend_hash_destroy()
1732 if (EXPECTED(p->key)) { in zend_hash_destroy()
1733 zend_string_release(p->key); in zend_hash_destroy()
1735 } while (++p != end); in zend_hash_destroy()
1772 Bucket *p = ht->arData; in zend_array_destroy() local
1773 Bucket *end = p + ht->nNumUsed; in zend_array_destroy()
1777 i_zval_ptr_dtor(&p->val); in zend_array_destroy()
1778 } while (++p != end); in zend_array_destroy()
1781 i_zval_ptr_dtor(&p->val); in zend_array_destroy()
1782 if (EXPECTED(p->key)) { in zend_array_destroy()
1783 zend_string_release_ex(p->key, 0); in zend_array_destroy()
1785 } while (++p != end); in zend_array_destroy()
1788 if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { in zend_array_destroy()
1789 i_zval_ptr_dtor(&p->val); in zend_array_destroy()
1790 if (EXPECTED(p->key)) { in zend_array_destroy()
1791 zend_string_release_ex(p->key, 0); in zend_array_destroy()
1794 } while (++p != end); in zend_array_destroy()
1833 Bucket *p = ht->arData; in zend_hash_clean() local
1834 Bucket *end = p + ht->nNumUsed; in zend_hash_clean()
1840 ht->pDestructor(&p->val); in zend_hash_clean()
1841 } while (++p != end); in zend_hash_clean()
1844 if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { in zend_hash_clean()
1845 ht->pDestructor(&p->val); in zend_hash_clean()
1847 } while (++p != end); in zend_hash_clean()
1851 ht->pDestructor(&p->val); in zend_hash_clean()
1852 if (EXPECTED(p->key)) { in zend_hash_clean()
1853 zend_string_release(p->key); in zend_hash_clean()
1855 } while (++p != end); in zend_hash_clean()
1858 if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { in zend_hash_clean()
1859 ht->pDestructor(&p->val); in zend_hash_clean()
1860 if (EXPECTED(p->key)) { in zend_hash_clean()
1861 zend_string_release(p->key); in zend_hash_clean()
1864 } while (++p != end); in zend_hash_clean()
1869 if (EXPECTED(p->key)) { in zend_hash_clean()
1870 zend_string_release(p->key); in zend_hash_clean()
1872 } while (++p != end); in zend_hash_clean()
1886 Bucket *p, *end; in zend_symtable_clean() local
1893 p = ht->arData; in zend_symtable_clean()
1894 end = p + ht->nNumUsed; in zend_symtable_clean()
1897 i_zval_ptr_dtor(&p->val); in zend_symtable_clean()
1898 } while (++p != end); in zend_symtable_clean()
1901 i_zval_ptr_dtor(&p->val); in zend_symtable_clean()
1902 if (EXPECTED(p->key)) { in zend_symtable_clean()
1903 zend_string_release(p->key); in zend_symtable_clean()
1905 } while (++p != end); in zend_symtable_clean()
1908 if (EXPECTED(Z_TYPE(p->val) != IS_UNDEF)) { in zend_symtable_clean()
1909 i_zval_ptr_dtor(&p->val); in zend_symtable_clean()
1910 if (EXPECTED(p->key)) { in zend_symtable_clean()
1911 zend_string_release(p->key); in zend_symtable_clean()
1914 } while (++p != end); in zend_symtable_clean()
1939 Bucket *p = ht->arData; in zend_hash_graceful_destroy() local
1941 for (idx = 0; idx < ht->nNumUsed; idx++, p++) { in zend_hash_graceful_destroy()
1942 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_graceful_destroy()
1943 _zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p); in zend_hash_graceful_destroy()
1971 Bucket *p = ht->arData + ht->nNumUsed; in zend_hash_graceful_reverse_destroy() local
1975 p--; in zend_hash_graceful_reverse_destroy()
1976 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_graceful_reverse_destroy()
1977 _zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p); in zend_hash_graceful_reverse_destroy()
2020 Bucket *p = ht->arData + idx; in zend_hash_apply() local
2022 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_apply()
2023 result = apply_func(&p->val); in zend_hash_apply()
2027 _zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p); in zend_hash_apply()
2059 Bucket *p = ht->arData + idx; in zend_hash_apply_with_argument() local
2060 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_apply_with_argument()
2061 result = apply_func(&p->val, argument); in zend_hash_apply_with_argument()
2065 _zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p); in zend_hash_apply_with_argument()
2107 Bucket *p = ht->arData + idx; in zend_hash_apply_with_arguments() local
2109 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_apply_with_arguments()
2111 hash_key.h = p->h; in zend_hash_apply_with_arguments()
2112 hash_key.key = p->key; in zend_hash_apply_with_arguments()
2114 result = apply_func(&p->val, num_args, args, &hash_key); in zend_hash_apply_with_arguments()
2118 _zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p); in zend_hash_apply_with_arguments()
2157 Bucket *p; in zend_hash_reverse_apply() local
2161 p = ht->arData + idx; in zend_hash_reverse_apply()
2162 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_reverse_apply()
2164 result = apply_func(&p->val); in zend_hash_reverse_apply()
2168 _zend_hash_del_el(ht, HT_IDX_TO_HASH(idx), p); in zend_hash_reverse_apply()
2201 Bucket *p = source->arData + idx; in zend_hash_copy() local
2203 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_copy()
2206 data = &p->val; in zend_hash_copy()
2213 if (p->key) { in zend_hash_copy()
2214 new_entry = zend_hash_update(target, p->key, data); in zend_hash_copy()
2216 new_entry = zend_hash_index_update(target, p->h, data); in zend_hash_copy()
2262 …ray_dup_element(HashTable *source, HashTable *target, uint32_t idx, Bucket *p, Bucket *q, bool pac… in zend_array_dup_element() argument
2264 if (!zend_array_dup_value(source, target, &p->val, &q->val, packed, with_holes)) { in zend_array_dup_element()
2271 q->h = p->h; in zend_array_dup_element()
2272 q->key = p->key; in zend_array_dup_element()
2286 zval *p = source->arPacked; in zend_array_dup_packed_elements() local
2288 zval *end = p + source->nNumUsed; in zend_array_dup_packed_elements()
2291 if (!zend_array_dup_value(source, target, p, q, 1, with_holes)) { in zend_array_dup_packed_elements()
2296 p++; q++; in zend_array_dup_packed_elements()
2297 } while (p != end); in zend_array_dup_packed_elements()
2303 Bucket *p = source->arData; in zend_array_dup_elements() local
2305 Bucket *end = p + source->nNumUsed; in zend_array_dup_elements()
2308 if (!zend_array_dup_element(source, target, idx, p, q, 0, static_keys, with_holes)) { in zend_array_dup_elements()
2311 idx++; p++; in zend_array_dup_elements()
2312 while (p != end) { in zend_array_dup_elements()
2313 if (zend_array_dup_element(source, target, target_idx, p, q, 0, static_keys, with_holes)) { in zend_array_dup_elements()
2319 idx++; p++; in zend_array_dup_elements()
2323 idx++; p++; q++; in zend_array_dup_elements()
2324 } while (p != end); in zend_array_dup_elements()
2440 Bucket *p; in zend_hash_merge() local
2463 p = source->arData + idx; in zend_hash_merge()
2464 s = &p->val; in zend_hash_merge()
2471 if (p->key) { in zend_hash_merge()
2472 t = _zend_hash_add_or_update_i(target, p->key, s, HASH_UPDATE | HASH_UPDATE_INDIRECT); in zend_hash_merge()
2477 t = zend_hash_index_update(target, p->h, s); in zend_hash_merge()
2499 p = source->arData + idx; in zend_hash_merge()
2500 s = &p->val; in zend_hash_merge()
2507 if (p->key) { in zend_hash_merge()
2508 t = _zend_hash_add_or_update_i(target, p->key, s, HASH_ADD | HASH_UPDATE_INDIRECT); in zend_hash_merge()
2513 t = zend_hash_index_add(target, p->h, s); in zend_hash_merge()
2536 Bucket *p; in zend_hash_merge_ex() local
2545 p = source->arData + idx; in zend_hash_merge_ex()
2546 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_merge_ex()
2547 if (zend_hash_replace_checker_wrapper(target, &p->val, p->h, p->key, pParam, pMergeSource)) { in zend_hash_merge_ex()
2548 t = zend_hash_update(target, p->key, &p->val); in zend_hash_merge_ex()
2560 Bucket *p; in zend_hash_find() local
2565 p = zend_hash_find_bucket(ht, key); in zend_hash_find()
2566 return p ? &p->val : NULL; in zend_hash_find()
2571 Bucket *p; in zend_hash_find_known_hash() local
2575 p = zend_hash_find_bucket(ht, key); in zend_hash_find_known_hash()
2576 return p ? &p->val : NULL; in zend_hash_find_known_hash()
2582 Bucket *p; in zend_hash_str_find() local
2587 p = zend_hash_str_find_bucket(ht, str, len, h); in zend_hash_str_find()
2588 return p ? &p->val : NULL; in zend_hash_str_find()
2593 Bucket *p; in zend_hash_index_find() local
2608 p = zend_hash_index_find_bucket(ht, h); in zend_hash_index_find()
2609 return p ? &p->val : NULL; in zend_hash_index_find()
2614 Bucket *p; in _zend_hash_index_find() local
2619 p = zend_hash_index_find_bucket(ht, h); in _zend_hash_index_find()
2620 return p ? &p->val : NULL; in _zend_hash_index_find()
2739 Bucket *p; in zend_hash_get_current_key_ex() local
2748 p = ht->arData + idx; in zend_hash_get_current_key_ex()
2749 if (p->key) { in zend_hash_get_current_key_ex()
2750 *str_index = p->key; in zend_hash_get_current_key_ex()
2753 *num_index = p->h; in zend_hash_get_current_key_ex()
2763 Bucket *p; in zend_hash_get_current_key_zval_ex() local
2774 p = ht->arData + idx; in zend_hash_get_current_key_zval_ex()
2775 if (p->key) { in zend_hash_get_current_key_zval_ex()
2776 ZVAL_STR_COPY(key, p->key); in zend_hash_get_current_key_zval_ex()
2778 ZVAL_LONG(key, p->h); in zend_hash_get_current_key_zval_ex()
2786 Bucket *p; in zend_hash_get_current_key_type_ex() local
2794 p = ht->arData + idx; in zend_hash_get_current_key_type_ex()
2795 if (p->key) { in zend_hash_get_current_key_type_ex()
2808 Bucket *p; in zend_hash_get_current_data_ex() local
2816 p = ht->arData + idx; in zend_hash_get_current_data_ex()
2817 return &p->val; in zend_hash_get_current_data_ex()
2823 ZEND_API void zend_hash_bucket_swap(Bucket *p, Bucket *q) in zend_hash_bucket_swap() argument
2829 val = p->val; in zend_hash_bucket_swap()
2830 h = p->h; in zend_hash_bucket_swap()
2831 key = p->key; in zend_hash_bucket_swap()
2833 p->val = q->val; in zend_hash_bucket_swap()
2834 p->h = q->h; in zend_hash_bucket_swap()
2835 p->key = q->key; in zend_hash_bucket_swap()
2842 ZEND_API void zend_hash_bucket_renum_swap(Bucket *p, Bucket *q) in zend_hash_bucket_renum_swap() argument
2846 val = p->val; in zend_hash_bucket_renum_swap()
2847 p->val = q->val; in zend_hash_bucket_renum_swap()
2851 ZEND_API void zend_hash_bucket_packed_swap(Bucket *p, Bucket *q) in zend_hash_bucket_packed_swap() argument
2856 val = p->val; in zend_hash_bucket_packed_swap()
2857 h = p->h; in zend_hash_bucket_packed_swap()
2859 p->val = q->val; in zend_hash_bucket_packed_swap()
2860 p->h = q->h; in zend_hash_bucket_packed_swap()
2868 Bucket *p; in zend_hash_sort_internal() local
2890 p = ht->arData + j; in zend_hash_sort_internal()
2891 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_sort_internal()
2893 ht->arData[i] = *p; in zend_hash_sort_internal()
2919 p = ht->arData + j; in zend_hash_sort_internal()
2920 p->h = j; in zend_hash_sort_internal()
2921 if (p->key) { in zend_hash_sort_internal()
2922 zend_string_release(p->key); in zend_hash_sort_internal()
2923 p->key = NULL; in zend_hash_sort_internal()
2943 p = old_buckets; in zend_hash_sort_internal()
2946 ZVAL_COPY_VALUE(zv, &p->val); in zend_hash_sort_internal()
2948 p++; in zend_hash_sort_internal()
3002 Bucket *p = ht1->arData + idx1; in zend_hash_compare_impl() local
3003 pData1 = &p->val; in zend_hash_compare_impl()
3004 h1 = p->h; in zend_hash_compare_impl()
3005 key1 = p->key; in zend_hash_compare_impl()
3021 Bucket *p; in zend_hash_compare_impl() local
3023 p = ht2->arData + idx2; in zend_hash_compare_impl()
3024 pData2 = &p->val; in zend_hash_compare_impl()
3025 h2 = p->h; in zend_hash_compare_impl()
3026 key2 = p->key; in zend_hash_compare_impl()
3151 Bucket *p; in zend_hash_minmax() local
3163 p = ht->arData + idx; in zend_hash_minmax()
3164 if (UNEXPECTED(Z_TYPE(p->val) == IS_UNDEF)) continue; in zend_hash_minmax()
3167 if (compar(res, &p->val) < 0) { /* max */ in zend_hash_minmax()
3168 res = &p->val; in zend_hash_minmax()
3171 if (compar(res, &p->val) > 0) { /* min */ in zend_hash_minmax()
3172 res = &p->val; in zend_hash_minmax()