Lines Matching refs:ht

109 void zend_accel_free_user_functions(HashTable *ht)  in zend_accel_free_user_functions()  argument
111 dtor_func_t orig_dtor = ht->pDestructor; in zend_accel_free_user_functions()
113 ht->pDestructor = NULL; in zend_accel_free_user_functions()
114 zend_hash_apply(ht, (apply_func_t) is_not_internal_function); in zend_accel_free_user_functions()
115 ht->pDestructor = orig_dtor; in zend_accel_free_user_functions()
171 static void zend_hash_clone_constants(HashTable *ht, HashTable *source) in zend_hash_clone_constants() argument
177 ht->nTableSize = source->nTableSize; in zend_hash_clone_constants()
178 ht->nTableMask = source->nTableMask; in zend_hash_clone_constants()
179 ht->nNumUsed = 0; in zend_hash_clone_constants()
180 ht->nNumOfElements = source->nNumOfElements; in zend_hash_clone_constants()
181 ht->nNextFreeElement = source->nNextFreeElement; in zend_hash_clone_constants()
182 ht->pDestructor = NULL; in zend_hash_clone_constants()
183 HT_FLAGS(ht) = (HT_FLAGS(source) & (HASH_FLAG_INITIALIZED | HASH_FLAG_STATIC_KEYS)); in zend_hash_clone_constants()
184 ht->nInternalPointer = 0; in zend_hash_clone_constants()
186 if (!(HT_FLAGS(ht) & HASH_FLAG_INITIALIZED)) { in zend_hash_clone_constants()
187 ht->arData = source->arData; in zend_hash_clone_constants()
192 HT_SET_DATA_ADDR(ht, emalloc(HT_SIZE(ht))); in zend_hash_clone_constants()
193 HT_HASH_RESET(ht); in zend_hash_clone_constants()
199 nIndex = p->h | ht->nTableMask; in zend_hash_clone_constants()
202 q = ht->arData + ht->nNumUsed; in zend_hash_clone_constants()
203 Z_NEXT(q->val) = HT_HASH(ht, nIndex); in zend_hash_clone_constants()
204 HT_HASH(ht, nIndex) = HT_IDX_TO_HASH(ht->nNumUsed++); in zend_hash_clone_constants()
222 static void zend_hash_clone_methods(HashTable *ht, HashTable *source, zend_class_entry *old_ce, zen… in zend_hash_clone_methods() argument
228 ht->nTableSize = source->nTableSize; in zend_hash_clone_methods()
229 ht->nTableMask = source->nTableMask; in zend_hash_clone_methods()
230 ht->nNumUsed = 0; in zend_hash_clone_methods()
231 ht->nNumOfElements = source->nNumOfElements; in zend_hash_clone_methods()
232 ht->nNextFreeElement = source->nNextFreeElement; in zend_hash_clone_methods()
233 ht->pDestructor = ZEND_FUNCTION_DTOR; in zend_hash_clone_methods()
234 HT_FLAGS(ht) = (HT_FLAGS(source) & (HASH_FLAG_INITIALIZED | HASH_FLAG_STATIC_KEYS)); in zend_hash_clone_methods()
235 ht->nInternalPointer = 0; in zend_hash_clone_methods()
237 if (!(HT_FLAGS(ht) & HASH_FLAG_INITIALIZED)) { in zend_hash_clone_methods()
238 ht->arData = source->arData; in zend_hash_clone_methods()
243 HT_SET_DATA_ADDR(ht, emalloc(HT_SIZE(ht))); in zend_hash_clone_methods()
244 HT_HASH_RESET(ht); in zend_hash_clone_methods()
251 nIndex = p->h | ht->nTableMask; in zend_hash_clone_methods()
254 q = ht->arData + ht->nNumUsed; in zend_hash_clone_methods()
255 Z_NEXT(q->val) = HT_HASH(ht, nIndex); in zend_hash_clone_methods()
256 HT_HASH(ht, nIndex) = HT_IDX_TO_HASH(ht->nNumUsed++); in zend_hash_clone_methods()
280 static void zend_hash_clone_prop_info(HashTable *ht, HashTable *source, zend_class_entry *old_ce) in zend_hash_clone_prop_info() argument
286 ht->nTableSize = source->nTableSize; in zend_hash_clone_prop_info()
287 ht->nTableMask = source->nTableMask; in zend_hash_clone_prop_info()
288 ht->nNumUsed = 0; in zend_hash_clone_prop_info()
289 ht->nNumOfElements = source->nNumOfElements; in zend_hash_clone_prop_info()
290 ht->nNextFreeElement = source->nNextFreeElement; in zend_hash_clone_prop_info()
291 ht->pDestructor = NULL; in zend_hash_clone_prop_info()
292 HT_FLAGS(ht) = (HT_FLAGS(source) & (HASH_FLAG_INITIALIZED | HASH_FLAG_STATIC_KEYS)); in zend_hash_clone_prop_info()
293 ht->nInternalPointer = 0; in zend_hash_clone_prop_info()
295 if (!(HT_FLAGS(ht) & HASH_FLAG_INITIALIZED)) { in zend_hash_clone_prop_info()
296 ht->arData = source->arData; in zend_hash_clone_prop_info()
301 HT_SET_DATA_ADDR(ht, emalloc(HT_SIZE(ht))); in zend_hash_clone_prop_info()
302 HT_HASH_RESET(ht); in zend_hash_clone_prop_info()
309 nIndex = p->h | ht->nTableMask; in zend_hash_clone_prop_info()
312 q = ht->arData + ht->nNumUsed; in zend_hash_clone_prop_info()
313 Z_NEXT(q->val) = HT_HASH(ht, nIndex); in zend_hash_clone_prop_info()
314 HT_HASH(ht, nIndex) = HT_IDX_TO_HASH(ht->nNumUsed++); in zend_hash_clone_prop_info()