Lines Matching refs:storage
49 HashTable storage; member
78 zend_hash_destroy(&intern->storage); in spl_SplObjectStorage_free_storage()
128 return zend_hash_find_ptr(&intern->storage, key->key); in spl_object_storage_get()
130 return zend_hash_index_find_ptr(&intern->storage, key->h); in spl_object_storage_get()
151 zval *entry_zv = zend_hash_index_lookup(&intern->storage, handle); in spl_object_storage_attach_handle()
214 …pelement = zend_hash_update_mem(&intern->storage, key.key, &element, sizeof(spl_SplObjectStorageEl… in spl_object_storage_attach()
216 …pelement = zend_hash_index_update_mem(&intern->storage, key.h, &element, sizeof(spl_SplObjectStora… in spl_object_storage_attach()
225 return zend_hash_index_del(&intern->storage, obj->handle); in spl_object_storage_detach()
233 ret = zend_hash_del(&intern->storage, key.key); in spl_object_storage_detach()
235 ret = zend_hash_index_del(&intern->storage, key.h); in spl_object_storage_detach()
245 ZEND_HASH_FOREACH_PTR(&other->storage, element) { in spl_object_storage_addall()
267 zend_hash_init(&intern->storage, 0, NULL, spl_object_storage_dtor, 0); in spl_object_storage_new_ex()
327 zval tmp, storage; in spl_object_storage_debug_info() local
335 array_init(&storage); in spl_object_storage_debug_info()
337 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_debug_info()
346 zend_hash_next_index_insert(Z_ARRVAL(storage), &tmp); in spl_object_storage_debug_info()
349 …e_debug_info_property(spl_ce_SplObjectStorage, "storage", strlen("storage"), debug_info, &storage); in spl_object_storage_debug_info()
362 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_get_gc()
395 …return zend_hash_compare(&(Z_SPLOBJSTORAGE_P(o1))->storage, &(Z_SPLOBJSTORAGE_P(o2))->storage, (co… in spl_object_storage_compare_objects()
410 return zend_hash_index_find(&intern->storage, obj->handle) != NULL; in spl_object_storage_contains()
418 bool found = zend_hash_exists(&intern->storage, key.key); in spl_object_storage_contains()
448 …spl_SplObjectStorageElement *element = zend_hash_index_find_ptr(&intern->storage, Z_OBJ_HANDLE_P(o… in spl_object_storage_has_dimension()
467 …spl_SplObjectStorageElement *element = zend_hash_index_find_ptr(&intern->storage, Z_OBJ_HANDLE_P(o… in spl_object_storage_read_dimension()
500 zend_hash_index_del(&intern->storage, Z_OBJ_HANDLE_P(offset)); in spl_object_storage_unset_dimension()
514 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
572 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
589 zend_hash_internal_pointer_reset(&other->storage); in PHP_METHOD()
590 while ((element = zend_hash_get_current_data_ptr(&other->storage)) != NULL) { in PHP_METHOD()
592 zend_hash_move_forward(&other->storage); in PHP_METHOD()
596 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
599 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
616 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in PHP_METHOD()
622 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
625 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
652 RETURN_LONG(php_count_recursive(&intern->storage)); in PHP_METHOD()
655 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
667 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
680 RETURN_BOOL(zend_hash_has_more_elements_ex(&intern->storage, &intern->pos) == SUCCESS); in PHP_METHOD()
705 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
722 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
739 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
757 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
771 if (position < 0 || position >= zend_hash_num_elements(&intern->storage)) { in PHP_METHOD()
778 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
783 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
789 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
792 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
797 zend_hash_move_backwards_ex(&intern->storage, &intern->pos); in PHP_METHOD()
823 ZVAL_LONG(&flags, zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
826 zend_hash_internal_pointer_reset_ex(&intern->storage, &pos); in PHP_METHOD()
828 while (zend_hash_has_more_elements_ex(&intern->storage, &pos) == SUCCESS) { in PHP_METHOD()
830 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &pos)) == NULL) { in PHP_METHOD()
845 zend_hash_move_forward_ex(&intern->storage, &pos); in PHP_METHOD()
996 array_init_size(&tmp, 2 * zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
997 ZEND_HASH_FOREACH_PTR(&intern->storage, elem) { in PHP_METHOD()
1136 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1137 while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL) { in PHP_METHOD()
1142 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1163 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1187 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in PHP_METHOD()
1202 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1203 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1206 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1223 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1224 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1227 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1246 if (!zend_hash_num_elements(&intern->storage)) { in PHP_METHOD()
1252 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1253 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1268 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in PHP_METHOD()
1281 num_elements = zend_hash_num_elements(&intern->storage); in spl_multiple_iterator_get_all()
1290 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in spl_multiple_iterator_get_all()
1291 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in spl_multiple_iterator_get_all()
1340 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in spl_multiple_iterator_get_all()