Lines Matching refs:storage
83 HashTable storage; member
112 zend_hash_destroy(&intern->storage); in spl_SplObjectStorage_free_storage()
158 return (spl_SplObjectStorageElement*)zend_hash_find_ptr(&intern->storage, hash); in spl_object_storage_get()
189 …pelement = zend_hash_update_mem(&intern->storage, hash, &element, sizeof(spl_SplObjectStorageEleme… in spl_object_storage_attach()
201 ret = zend_hash_del(&intern->storage, hash); in spl_object_storage_detach()
210 ZEND_HASH_FOREACH_PTR(&other->storage, element) { in spl_object_storage_addall()
229 zend_hash_init(&intern->storage, 0, NULL, spl_object_storage_dtor, 0); in spl_object_storage_new_ex()
276 zval tmp, storage; in spl_object_storage_debug_info() local
289 array_init(&storage); in spl_object_storage_debug_info()
291 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_debug_info()
299 zend_hash_update(Z_ARRVAL(storage), md5str, &tmp); in spl_object_storage_debug_info()
304 zend_symtable_update(debug_info, zname, &storage); in spl_object_storage_debug_info()
318 if (intern->storage.nNumOfElements * 2 > intern->gcdata_num) { in spl_object_storage_get_gc()
319 intern->gcdata_num = intern->storage.nNumOfElements * 2; in spl_object_storage_get_gc()
323 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_get_gc()
358 …return zend_hash_compare(&(Z_SPLOBJSTORAGE_P(o1))->storage, &(Z_SPLOBJSTORAGE_P(o2))->storage, (co… in spl_object_storage_compare_objects()
377 found = zend_hash_exists(&intern->storage, hash); in spl_object_storage_contains()
408 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
473 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in SPL_METHOD()
491 zend_hash_internal_pointer_reset(&other->storage); in SPL_METHOD()
492 while ((element = zend_hash_get_current_data_ptr(&other->storage)) != NULL) { in SPL_METHOD()
494 zend_hash_move_forward(&other->storage); in SPL_METHOD()
498 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
501 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in SPL_METHOD()
519 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in SPL_METHOD()
525 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
528 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in SPL_METHOD()
557 zend_long ret = zend_hash_num_elements(&intern->storage); in SPL_METHOD()
560 ZEND_HASH_FOREACH_VAL(&intern->storage, element) { in SPL_METHOD()
568 RETURN_LONG(zend_hash_num_elements(&intern->storage)); in SPL_METHOD()
581 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
595 RETURN_BOOL(zend_hash_has_more_elements_ex(&intern->storage, &intern->pos) == SUCCESS); in SPL_METHOD()
622 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in SPL_METHOD()
639 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in SPL_METHOD()
657 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in SPL_METHOD()
674 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
698 ZVAL_LONG(&flags, zend_hash_num_elements(&intern->storage)); in SPL_METHOD()
702 zend_hash_internal_pointer_reset_ex(&intern->storage, &pos); in SPL_METHOD()
704 while (zend_hash_has_more_elements_ex(&intern->storage, &pos) == SUCCESS) { in SPL_METHOD()
705 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &pos)) == NULL) { in SPL_METHOD()
714 zend_hash_move_forward_ex(&intern->storage, &pos); in SPL_METHOD()
990 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
991 while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL) { in SPL_METHOD()
996 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1018 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1019 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in SPL_METHOD()
1022 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1041 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1042 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in SPL_METHOD()
1045 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1065 if (!zend_hash_num_elements(&intern->storage)) { in SPL_METHOD()
1071 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1072 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in SPL_METHOD()
1087 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in SPL_METHOD()
1100 num_elements = zend_hash_num_elements(&intern->storage); in spl_multiple_iterator_get_all()
1107 zend_hash_internal_pointer_reset_ex(&intern->storage, &intern->pos); in spl_multiple_iterator_get_all()
1108 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in spl_multiple_iterator_get_all()
1157 zend_hash_move_forward_ex(&intern->storage, &intern->pos); in spl_multiple_iterator_get_all()