Lines Matching refs:in_hash

3056 static void php_splice(HashTable *in_hash, zend_long offset, zend_long length, HashTable *replace, …  argument
3064 uint32_t iter_pos = zend_hash_iterators_lower_pos(in_hash, 0);
3067 num_in = zend_hash_num_elements(in_hash);
3087 for (pos = 0, idx = 0; pos < offset && idx < in_hash->nNumUsed; idx++) {
3088 p = in_hash->arData + idx;
3101 zend_hash_iterators_update(in_hash, idx, pos);
3103 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3110 for ( ; pos < offset + length && idx < in_hash->nNumUsed; idx++) {
3111 p = in_hash->arData + idx;
3118 zend_hash_del_bucket(in_hash, p);
3121 if (in_hash == &EG(symbol_table)) {
3124 zend_hash_del_bucket(in_hash, p);
3131 for ( ; pos2 < offset + length && idx < in_hash->nNumUsed; idx++) {
3132 p = in_hash->arData + idx;
3135 if (p->key && in_hash == &EG(symbol_table)) {
3138 zend_hash_del_bucket(in_hash, p);
3142 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos);
3154 for ( ; idx < in_hash->nNumUsed ; idx++) {
3155 p = in_hash->arData + idx;
3165 zend_hash_iterators_update(in_hash, idx, pos);
3167 iter_pos = zend_hash_iterators_lower_pos(in_hash, iter_pos + 1);
3173 HT_SET_ITERATORS_COUNT(&out_hash, HT_ITERATORS_COUNT(in_hash));
3174 HT_SET_ITERATORS_COUNT(in_hash, 0);
3175 in_hash->pDestructor = NULL;
3176 zend_hash_destroy(in_hash);
3178 HT_FLAGS(in_hash) = HT_FLAGS(&out_hash);
3179 in_hash->nTableSize = out_hash.nTableSize;
3180 in_hash->nTableMask = out_hash.nTableMask;
3181 in_hash->nNumUsed = out_hash.nNumUsed;
3182 in_hash->nNumOfElements = out_hash.nNumOfElements;
3183 in_hash->nNextFreeElement = out_hash.nNextFreeElement;
3184 in_hash->arData = out_hash.arData;
3185 in_hash->pDestructor = out_hash.pDestructor;
3187 zend_hash_internal_pointer_reset(in_hash);