Lines Matching refs:p

113 #define UPDATE_DATA(ht, p, pData, nDataSize)											\  argument
115 if ((p)->pData != &(p)->pDataPtr) { \
116 pefree_rel((p)->pData, (ht)->persistent); \
118 memcpy(&(p)->pDataPtr, pData, sizeof(void *)); \
119 (p)->pData = &(p)->pDataPtr; \
121 if ((p)->pData == &(p)->pDataPtr) { \
122 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent); \
123 (p)->pDataPtr=NULL; \
125 (p)->pData = (void *) perealloc_rel((p)->pData, nDataSize, (ht)->persistent); \
128 memcpy((p)->pData, pData, nDataSize); \
131 #define INIT_DATA(ht, p, _pData, nDataSize); \ argument
133 memcpy(&(p)->pDataPtr, (_pData), sizeof(void *)); \
134 (p)->pData = &(p)->pDataPtr; \
136 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent);\
137 memcpy((p)->pData, (_pData), nDataSize); \
138 (p)->pDataPtr=NULL; \
150 static zend_always_inline void i_zend_hash_bucket_delete(HashTable *ht, Bucket *p) in i_zend_hash_bucket_delete() argument
157 if (p->pLast) { in i_zend_hash_bucket_delete()
158 p->pLast->pNext = p->pNext; in i_zend_hash_bucket_delete()
160 ht->arBuckets[p->h & ht->nTableMask] = p->pNext; in i_zend_hash_bucket_delete()
162 if (p->pNext) { in i_zend_hash_bucket_delete()
163 p->pNext->pLast = p->pLast; in i_zend_hash_bucket_delete()
165 if (p->pListLast != NULL) { in i_zend_hash_bucket_delete()
166 p->pListLast->pListNext = p->pListNext; in i_zend_hash_bucket_delete()
169 ht->pListHead = p->pListNext; in i_zend_hash_bucket_delete()
171 if (p->pListNext != NULL) { in i_zend_hash_bucket_delete()
172 p->pListNext->pListLast = p->pListLast; in i_zend_hash_bucket_delete()
175 ht->pListTail = p->pListLast; in i_zend_hash_bucket_delete()
177 if (ht->pInternalPointer == p) { in i_zend_hash_bucket_delete()
178 ht->pInternalPointer = p->pListNext; in i_zend_hash_bucket_delete()
182 ht->pDestructor(p->pData); in i_zend_hash_bucket_delete()
184 if (p->pData != &p->pDataPtr) { in i_zend_hash_bucket_delete()
185 pefree(p->pData, ht->persistent); in i_zend_hash_bucket_delete()
187 pefree(p, ht->persistent); in i_zend_hash_bucket_delete()
191 static void zend_hash_bucket_delete(HashTable *ht, Bucket *p) { in zend_hash_bucket_delete() argument
192 i_zend_hash_bucket_delete(ht, p); in zend_hash_bucket_delete()
246 Bucket *p; in _zend_hash_add_or_update() local
260 p = ht->arBuckets[nIndex]; in _zend_hash_add_or_update()
261 while (p != NULL) { in _zend_hash_add_or_update()
262 if (p->arKey == arKey || in _zend_hash_add_or_update()
263 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_add_or_update()
267 ZEND_ASSERT(p->pData != pData); in _zend_hash_add_or_update()
270 ht->pDestructor(p->pData); in _zend_hash_add_or_update()
272 UPDATE_DATA(ht, p, pData, nDataSize); in _zend_hash_add_or_update()
274 *pDest = p->pData; in _zend_hash_add_or_update()
279 p = p->pNext; in _zend_hash_add_or_update()
283 p = (Bucket *) pemalloc(sizeof(Bucket), ht->persistent); in _zend_hash_add_or_update()
284 p->arKey = arKey; in _zend_hash_add_or_update()
286 p = (Bucket *) pemalloc(sizeof(Bucket) + nKeyLength, ht->persistent); in _zend_hash_add_or_update()
287 p->arKey = (const char*)(p + 1); in _zend_hash_add_or_update()
288 memcpy((char*)p->arKey, arKey, nKeyLength); in _zend_hash_add_or_update()
290 p->nKeyLength = nKeyLength; in _zend_hash_add_or_update()
291 INIT_DATA(ht, p, pData, nDataSize); in _zend_hash_add_or_update()
292 p->h = h; in _zend_hash_add_or_update()
293 CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[nIndex]); in _zend_hash_add_or_update()
295 *pDest = p->pData; in _zend_hash_add_or_update()
299 CONNECT_TO_GLOBAL_DLLIST(p, ht); in _zend_hash_add_or_update()
300 ht->arBuckets[nIndex] = p; in _zend_hash_add_or_update()
311 Bucket *p; in _zend_hash_quick_add_or_update() local
323 p = ht->arBuckets[nIndex]; in _zend_hash_quick_add_or_update()
324 while (p != NULL) { in _zend_hash_quick_add_or_update()
325 if (p->arKey == arKey || in _zend_hash_quick_add_or_update()
326 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in _zend_hash_quick_add_or_update()
330 ZEND_ASSERT(p->pData != pData); in _zend_hash_quick_add_or_update()
333 ht->pDestructor(p->pData); in _zend_hash_quick_add_or_update()
335 UPDATE_DATA(ht, p, pData, nDataSize); in _zend_hash_quick_add_or_update()
337 *pDest = p->pData; in _zend_hash_quick_add_or_update()
342 p = p->pNext; in _zend_hash_quick_add_or_update()
346 p = (Bucket *) pemalloc(sizeof(Bucket), ht->persistent); in _zend_hash_quick_add_or_update()
347 p->arKey = arKey; in _zend_hash_quick_add_or_update()
349 p = (Bucket *) pemalloc(sizeof(Bucket) + nKeyLength, ht->persistent); in _zend_hash_quick_add_or_update()
350 p->arKey = (const char*)(p + 1); in _zend_hash_quick_add_or_update()
351 memcpy((char*)p->arKey, arKey, nKeyLength); in _zend_hash_quick_add_or_update()
354 p->nKeyLength = nKeyLength; in _zend_hash_quick_add_or_update()
355 INIT_DATA(ht, p, pData, nDataSize); in _zend_hash_quick_add_or_update()
356 p->h = h; in _zend_hash_quick_add_or_update()
358 CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[nIndex]); in _zend_hash_quick_add_or_update()
361 *pDest = p->pData; in _zend_hash_quick_add_or_update()
365 ht->arBuckets[nIndex] = p; in _zend_hash_quick_add_or_update()
366 CONNECT_TO_GLOBAL_DLLIST(p, ht); in _zend_hash_quick_add_or_update()
386 Bucket *p; in _zend_hash_index_update_or_next_insert() local
399 p = ht->arBuckets[nIndex]; in _zend_hash_index_update_or_next_insert()
400 while (p != NULL) { in _zend_hash_index_update_or_next_insert()
401 if ((p->nKeyLength == 0) && (p->h == h)) { in _zend_hash_index_update_or_next_insert()
405 ZEND_ASSERT(p->pData != pData); in _zend_hash_index_update_or_next_insert()
408 ht->pDestructor(p->pData); in _zend_hash_index_update_or_next_insert()
410 UPDATE_DATA(ht, p, pData, nDataSize); in _zend_hash_index_update_or_next_insert()
413 *pDest = p->pData; in _zend_hash_index_update_or_next_insert()
417 p = p->pNext; in _zend_hash_index_update_or_next_insert()
419 p = (Bucket *) pemalloc_rel(sizeof(Bucket), ht->persistent); in _zend_hash_index_update_or_next_insert()
420 p->arKey = NULL; in _zend_hash_index_update_or_next_insert()
421 p->nKeyLength = 0; /* Numeric indices are marked by making the nKeyLength == 0 */ in _zend_hash_index_update_or_next_insert()
422 p->h = h; in _zend_hash_index_update_or_next_insert()
423 INIT_DATA(ht, p, pData, nDataSize); in _zend_hash_index_update_or_next_insert()
425 *pDest = p->pData; in _zend_hash_index_update_or_next_insert()
428 CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[nIndex]); in _zend_hash_index_update_or_next_insert()
431 ht->arBuckets[nIndex] = p; in _zend_hash_index_update_or_next_insert()
432 CONNECT_TO_GLOBAL_DLLIST(p, ht); in _zend_hash_index_update_or_next_insert()
466 Bucket *p; in zend_hash_rehash() local
475 for (p = ht->pListHead; p != NULL; p = p->pListNext) { in zend_hash_rehash()
476 nIndex = p->h & ht->nTableMask; in zend_hash_rehash()
477 CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[nIndex]); in zend_hash_rehash()
478 ht->arBuckets[nIndex] = p; in zend_hash_rehash()
484 Bucket *p; in zend_hash_reindex() local
495 for (p = ht->pListHead; p != NULL; p = p->pListNext) { in zend_hash_reindex()
496 if (!only_integer_keys || p->nKeyLength == 0) { in zend_hash_reindex()
497 p->h = offset++; in zend_hash_reindex()
498 p->nKeyLength = 0; in zend_hash_reindex()
501 nIndex = p->h & ht->nTableMask; in zend_hash_reindex()
502 CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[nIndex]); in zend_hash_reindex()
503 ht->arBuckets[nIndex] = p; in zend_hash_reindex()
511 Bucket *p; in zend_hash_del_key_or_index() local
520 p = ht->arBuckets[nIndex]; in zend_hash_del_key_or_index()
521 while (p != NULL) { in zend_hash_del_key_or_index()
522 if ((p->h == h) in zend_hash_del_key_or_index()
523 && (p->nKeyLength == nKeyLength) in zend_hash_del_key_or_index()
524 && ((p->nKeyLength == 0) /* Numeric index (short circuits the memcmp() check) */ in zend_hash_del_key_or_index()
525 || !memcmp(p->arKey, arKey, nKeyLength))) { /* String index */ in zend_hash_del_key_or_index()
526 i_zend_hash_bucket_delete(ht, p); in zend_hash_del_key_or_index()
529 p = p->pNext; in zend_hash_del_key_or_index()
537 Bucket *p, *q; in zend_hash_destroy() local
543 p = ht->pListHead; in zend_hash_destroy()
544 while (p != NULL) { in zend_hash_destroy()
545 q = p; in zend_hash_destroy()
546 p = p->pListNext; in zend_hash_destroy()
565 Bucket *p, *q; in zend_hash_clean() local
569 p = ht->pListHead; in zend_hash_clean()
580 while (p != NULL) { in zend_hash_clean()
581 q = p; in zend_hash_clean()
582 p = p->pListNext; in zend_hash_clean()
634 Bucket *p; in zend_hash_apply() local
639 p = ht->pListHead; in zend_hash_apply()
640 while (p != NULL) { in zend_hash_apply()
641 int result = apply_func(p->pData TSRMLS_CC); in zend_hash_apply()
643 Bucket *p_next = p->pListNext; in zend_hash_apply()
645 zend_hash_bucket_delete(ht, p); in zend_hash_apply()
647 p = p_next; in zend_hash_apply()
659 Bucket *p; in zend_hash_apply_with_argument() local
664 p = ht->pListHead; in zend_hash_apply_with_argument()
665 while (p != NULL) { in zend_hash_apply_with_argument()
666 int result = apply_func(p->pData, argument TSRMLS_CC); in zend_hash_apply_with_argument()
668 Bucket *p_next = p->pListNext; in zend_hash_apply_with_argument()
670 zend_hash_bucket_delete(ht, p); in zend_hash_apply_with_argument()
672 p = p_next; in zend_hash_apply_with_argument()
684 Bucket *p; in zend_hash_apply_with_arguments() local
692 p = ht->pListHead; in zend_hash_apply_with_arguments()
693 while (p != NULL) { in zend_hash_apply_with_arguments()
698 hash_key.arKey = p->arKey; in zend_hash_apply_with_arguments()
699 hash_key.nKeyLength = p->nKeyLength; in zend_hash_apply_with_arguments()
700 hash_key.h = p->h; in zend_hash_apply_with_arguments()
701 result = apply_func(p->pData TSRMLS_CC, num_args, args, &hash_key); in zend_hash_apply_with_arguments()
703 p_next = p->pListNext; in zend_hash_apply_with_arguments()
705 zend_hash_bucket_delete(ht, p); in zend_hash_apply_with_arguments()
707 p = p_next; in zend_hash_apply_with_arguments()
722 Bucket *p; in zend_hash_reverse_apply() local
727 p = ht->pListTail; in zend_hash_reverse_apply()
728 while (p != NULL) { in zend_hash_reverse_apply()
729 int result = apply_func(p->pData TSRMLS_CC); in zend_hash_reverse_apply()
731 Bucket *p_last = p->pListLast; in zend_hash_reverse_apply()
733 zend_hash_bucket_delete(ht, p); in zend_hash_reverse_apply()
735 p = p_last; in zend_hash_reverse_apply()
747 Bucket *p; in zend_hash_copy() local
755 p = source->pListHead; in zend_hash_copy()
756 while (p) { in zend_hash_copy()
757 if (setTargetPointer && source->pInternalPointer == p) { in zend_hash_copy()
760 if (p->nKeyLength) { in zend_hash_copy()
761 zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &new_entry); in zend_hash_copy()
763 zend_hash_index_update(target, p->h, p->pData, size, &new_entry); in zend_hash_copy()
768 p = p->pListNext; in zend_hash_copy()
778 Bucket *p; in _zend_hash_merge() local
785 p = source->pListHead; in _zend_hash_merge()
786 while (p) { in _zend_hash_merge()
787 if (p->nKeyLength>0) { in _zend_hash_merge()
788 …if (_zend_hash_quick_add_or_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t, mode… in _zend_hash_merge()
792 …ode==HASH_UPDATE || !zend_hash_index_exists(target, p->h)) && zend_hash_index_update(target, p->h,… in _zend_hash_merge()
796 p = p->pListNext; in _zend_hash_merge()
802 static zend_bool zend_hash_replace_checker_wrapper(HashTable *target, void *source_data, Bucket *p,… in zend_hash_replace_checker_wrapper() argument
806 hash_key.arKey = p->arKey; in zend_hash_replace_checker_wrapper()
807 hash_key.nKeyLength = p->nKeyLength; in zend_hash_replace_checker_wrapper()
808 hash_key.h = p->h; in zend_hash_replace_checker_wrapper()
815 Bucket *p; in zend_hash_merge_ex() local
821 p = source->pListHead; in zend_hash_merge_ex()
822 while (p) { in zend_hash_merge_ex()
823 if (zend_hash_replace_checker_wrapper(target, p->pData, p, pParam, pMergeSource)) { in zend_hash_merge_ex()
824 …if (zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t)==SUCCESS && … in zend_hash_merge_ex()
828 p = p->pListNext; in zend_hash_merge_ex()
842 Bucket *p; in zend_hash_find() local
849 p = ht->arBuckets[nIndex]; in zend_hash_find()
850 while (p != NULL) { in zend_hash_find()
851 if (p->arKey == arKey || in zend_hash_find()
852 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_find()
853 *pData = p->pData; in zend_hash_find()
856 p = p->pNext; in zend_hash_find()
865 Bucket *p; in zend_hash_quick_find() local
873 p = ht->arBuckets[nIndex]; in zend_hash_quick_find()
874 while (p != NULL) { in zend_hash_quick_find()
875 if (p->arKey == arKey || in zend_hash_quick_find()
876 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_find()
877 *pData = p->pData; in zend_hash_quick_find()
880 p = p->pNext; in zend_hash_quick_find()
890 Bucket *p; in zend_hash_exists() local
897 p = ht->arBuckets[nIndex]; in zend_hash_exists()
898 while (p != NULL) { in zend_hash_exists()
899 if (p->arKey == arKey || in zend_hash_exists()
900 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_exists()
903 p = p->pNext; in zend_hash_exists()
912 Bucket *p; in zend_hash_quick_exists() local
920 p = ht->arBuckets[nIndex]; in zend_hash_quick_exists()
921 while (p != NULL) { in zend_hash_quick_exists()
922 if (p->arKey == arKey || in zend_hash_quick_exists()
923 ((p->h == h) && (p->nKeyLength == nKeyLength) && !memcmp(p->arKey, arKey, nKeyLength))) { in zend_hash_quick_exists()
926 p = p->pNext; in zend_hash_quick_exists()
936 Bucket *p; in zend_hash_index_find() local
942 p = ht->arBuckets[nIndex]; in zend_hash_index_find()
943 while (p != NULL) { in zend_hash_index_find()
944 if ((p->h == h) && (p->nKeyLength == 0)) { in zend_hash_index_find()
945 *pData = p->pData; in zend_hash_index_find()
948 p = p->pNext; in zend_hash_index_find()
957 Bucket *p; in zend_hash_index_exists() local
963 p = ht->arBuckets[nIndex]; in zend_hash_index_exists()
964 while (p != NULL) { in zend_hash_index_exists()
965 if ((p->h == h) && (p->nKeyLength == 0)) { in zend_hash_index_exists()
968 p = p->pNext; in zend_hash_index_exists()
999 Bucket *p; in zend_hash_set_pointer() local
1002 p = ht->arBuckets[ptr->h & ht->nTableMask]; in zend_hash_set_pointer()
1003 while (p != NULL) { in zend_hash_set_pointer()
1004 if (p == ptr->pos) { in zend_hash_set_pointer()
1005 ht->pInternalPointer = p; in zend_hash_set_pointer()
1008 p = p->pNext; in zend_hash_set_pointer()
1070 Bucket *p; in zend_hash_get_current_key_ex() local
1072 p = pos ? (*pos) : ht->pInternalPointer; in zend_hash_get_current_key_ex()
1076 if (p) { in zend_hash_get_current_key_ex()
1077 if (p->nKeyLength) { in zend_hash_get_current_key_ex()
1079 *str_index = estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_ex()
1081 *str_index = (char*)p->arKey; in zend_hash_get_current_key_ex()
1084 *str_length = p->nKeyLength; in zend_hash_get_current_key_ex()
1088 *num_index = p->h; in zend_hash_get_current_key_ex()
1096 Bucket *p; in zend_hash_get_current_key_zval_ex() local
1100 p = pos ? (*pos) : ht->pInternalPointer; in zend_hash_get_current_key_zval_ex()
1102 if (!p) { in zend_hash_get_current_key_zval_ex()
1104 } else if (p->nKeyLength) { in zend_hash_get_current_key_zval_ex()
1106 Z_STRVAL_P(key) = IS_INTERNED(p->arKey) ? (char*)p->arKey : estrndup(p->arKey, p->nKeyLength - 1); in zend_hash_get_current_key_zval_ex()
1107 Z_STRLEN_P(key) = p->nKeyLength - 1; in zend_hash_get_current_key_zval_ex()
1110 Z_LVAL_P(key) = p->h; in zend_hash_get_current_key_zval_ex()
1116 Bucket *p; in zend_hash_get_current_key_type_ex() local
1118 p = pos ? (*pos) : ht->pInternalPointer; in zend_hash_get_current_key_type_ex()
1122 if (p) { in zend_hash_get_current_key_type_ex()
1123 if (p->nKeyLength) { in zend_hash_get_current_key_type_ex()
1135 Bucket *p; in zend_hash_get_current_data_ex() local
1137 p = pos ? (*pos) : ht->pInternalPointer; in zend_hash_get_current_data_ex()
1141 if (p) { in zend_hash_get_current_data_ex()
1142 *pData = p->pData; in zend_hash_get_current_data_ex()
1154 Bucket *p, *q; in zend_hash_update_current_key_ex() local
1160 p = pos ? (*pos) : ht->pInternalPointer; in zend_hash_update_current_key_ex()
1164 if (p) { in zend_hash_update_current_key_ex()
1167 if (!p->nKeyLength && p->h == num_index) { in zend_hash_update_current_key_ex()
1185 if (p->arKey == str_index || in zend_hash_update_current_key_ex()
1186 (p->nKeyLength == str_length && in zend_hash_update_current_key_ex()
1187 p->h == h && in zend_hash_update_current_key_ex()
1188 memcmp(p->arKey, str_index, str_length) == 0)) { in zend_hash_update_current_key_ex()
1208 Bucket *r = p->pListLast; in zend_hash_update_current_key_ex()
1220 zend_hash_bucket_delete(ht, p); in zend_hash_update_current_key_ex()
1231 if (p->pNext) { in zend_hash_update_current_key_ex()
1232 p->pNext->pLast = p->pLast; in zend_hash_update_current_key_ex()
1234 if (p->pLast) { in zend_hash_update_current_key_ex()
1235 p->pLast->pNext = p->pNext; in zend_hash_update_current_key_ex()
1237 ht->arBuckets[p->h & ht->nTableMask] = p->pNext; in zend_hash_update_current_key_ex()
1240 if ((IS_INTERNED(p->arKey) != IS_INTERNED(str_index)) || in zend_hash_update_current_key_ex()
1241 (!IS_INTERNED(p->arKey) && p->nKeyLength != str_length)) { in zend_hash_update_current_key_ex()
1251 if (p->pData == &p->pDataPtr) { in zend_hash_update_current_key_ex()
1254 q->pData = p->pData; in zend_hash_update_current_key_ex()
1256 q->pDataPtr = p->pDataPtr; in zend_hash_update_current_key_ex()
1258 CONNECT_TO_GLOBAL_DLLIST_EX(q, ht, p->pListLast, p->pListNext); in zend_hash_update_current_key_ex()
1259 if (ht->pInternalPointer == p) { in zend_hash_update_current_key_ex()
1266 pefree(p, ht->persistent); in zend_hash_update_current_key_ex()
1267 p = q; in zend_hash_update_current_key_ex()
1271 p->h = num_index; in zend_hash_update_current_key_ex()
1276 p->h = h; in zend_hash_update_current_key_ex()
1277 p->nKeyLength = str_length; in zend_hash_update_current_key_ex()
1279 p->arKey = str_index; in zend_hash_update_current_key_ex()
1281 p->arKey = (const char*)(p+1); in zend_hash_update_current_key_ex()
1282 memcpy((char*)p->arKey, str_index, str_length); in zend_hash_update_current_key_ex()
1286 CONNECT_TO_BUCKET_DLLIST(p, ht->arBuckets[p->h & ht->nTableMask]); in zend_hash_update_current_key_ex()
1287 ht->arBuckets[p->h & ht->nTableMask] = p; in zend_hash_update_current_key_ex()
1304 Bucket *p; in _zend_hash_splice() local
1310 for (pos = 0, p = ht->pListHead; pos < offset && p; pos++, p = p->pListNext); in _zend_hash_splice()
1312 while (pos < offset + length && p) { in _zend_hash_splice()
1317 if (p->nKeyLength == 0) { in _zend_hash_splice()
1318 zend_hash_next_index_insert(removed, p->pData, sizeof(zval *), &new_entry); in _zend_hash_splice()
1320 …zend_hash_quick_update(removed, p->arKey, p->nKeyLength, p->h, p->pData, sizeof(zval *), &new_entr… in _zend_hash_splice()
1330 Bucket *p_next = p->pListNext; in _zend_hash_splice()
1331 zend_hash_bucket_delete(ht, p); in _zend_hash_splice()
1332 p = p_next; in _zend_hash_splice()
1349 CONNECT_TO_GLOBAL_DLLIST_EX(q, ht, p ? p->pListLast : ht->pListTail, p); in _zend_hash_splice()
1369 Bucket *p; in zend_hash_sort() local
1378 p = ht->pListHead; in zend_hash_sort()
1380 while (p) { in zend_hash_sort()
1381 arTmp[i] = p; in zend_hash_sort()
1382 p = p->pListNext; in zend_hash_sort()
1504 Bucket *p, *res; in zend_hash_minmax() local
1513 res = p = ht->pListHead; in zend_hash_minmax()
1514 while ((p = p->pListNext)) { in zend_hash_minmax()
1516 if (compar(&res, &p TSRMLS_CC) < 0) { /* max */ in zend_hash_minmax()
1517 res = p; in zend_hash_minmax()
1520 if (compar(&res, &p TSRMLS_CC) > 0) { /* min */ in zend_hash_minmax()
1521 res = p; in zend_hash_minmax()
1541 Bucket *p; in zend_hash_display_pListTail() local
1543 p = ht->pListTail; in zend_hash_display_pListTail()
1544 while (p != NULL) { in zend_hash_display_pListTail()
1545 zend_output_debug_string(0, "pListTail has key %s\n", p->arKey); in zend_hash_display_pListTail()
1546 p = p->pListLast; in zend_hash_display_pListTail()
1552 Bucket *p; in zend_hash_display() local
1560 p = ht->arBuckets[i]; in zend_hash_display()
1561 while (p != NULL) { in zend_hash_display()
1562 zend_output_debug_string(0, "%s <==> 0x%lX\n", p->arKey, p->h); in zend_hash_display()
1563 p = p->pNext; in zend_hash_display()
1567 p = ht->pListTail; in zend_hash_display()
1568 while (p != NULL) { in zend_hash_display()
1569 zend_output_debug_string(0, "%s <==> 0x%lX\n", p->arKey, p->h); in zend_hash_display()
1570 p = p->pListLast; in zend_hash_display()