Lines Matching refs:element
111 static void spl_object_storage_dtor(zval *element) /* {{{ */ in spl_object_storage_dtor() argument
113 spl_SplObjectStorageElement *el = Z_PTR_P(element); in spl_object_storage_dtor()
130 spl_SplObjectStorageElement *pelement, element; in spl_object_storage_attach() local
149 element.obj = obj; in spl_object_storage_attach()
152 ZVAL_COPY(&element.inf, inf); in spl_object_storage_attach()
154 ZVAL_NULL(&element.inf); in spl_object_storage_attach()
157 …pelement = zend_hash_update_mem(&intern->storage, key.key, &element, sizeof(spl_SplObjectStorageEl… in spl_object_storage_attach()
159 …pelement = zend_hash_index_update_mem(&intern->storage, key.h, &element, sizeof(spl_SplObjectStora… in spl_object_storage_attach()
183 spl_SplObjectStorageElement *element; in spl_object_storage_addall() local
185 ZEND_HASH_FOREACH_PTR(&other->storage, element) { in spl_object_storage_addall()
186 spl_object_storage_attach(intern, element->obj, &element->inf); in spl_object_storage_addall()
247 spl_SplObjectStorageElement *element; in spl_object_storage_debug_info() local
260 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_debug_info()
266 ZVAL_OBJ(&obj, element->obj); in spl_object_storage_debug_info()
268 add_assoc_zval_ex(&tmp, "inf", sizeof("inf") - 1, &element->inf); in spl_object_storage_debug_info()
284 spl_SplObjectStorageElement *element; in spl_object_storage_get_gc() local
287 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_get_gc()
288 zend_get_gc_buffer_add_obj(gc_buffer, element->obj); in spl_object_storage_get_gc()
289 zend_get_gc_buffer_add_zval(gc_buffer, &element->inf); in spl_object_storage_get_gc()
396 spl_SplObjectStorageElement *element; in PHP_METHOD() local
408 element = spl_object_storage_get(intern, &key); in PHP_METHOD()
411 if (!element) { in PHP_METHOD()
414 RETURN_COPY_DEREF(&element->inf); in PHP_METHOD()
442 spl_SplObjectStorageElement *element; in PHP_METHOD() local
451 while ((element = zend_hash_get_current_data_ptr(&other->storage)) != NULL) { in PHP_METHOD()
452 if (spl_object_storage_detach(intern, element->obj) == FAILURE) { in PHP_METHOD()
469 spl_SplObjectStorageElement *element; in PHP_METHOD() local
477 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in PHP_METHOD()
478 if (!spl_object_storage_contains(other, element->obj)) { in PHP_METHOD()
479 spl_object_storage_detach(intern, element->obj); in PHP_METHOD()
559 spl_SplObjectStorageElement *element; in PHP_METHOD() local
566 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
570 ZVAL_OBJ_COPY(return_value, element->obj); in PHP_METHOD()
576 spl_SplObjectStorageElement *element; in PHP_METHOD() local
583 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
586 ZVAL_COPY(return_value, &element->inf); in PHP_METHOD()
592 spl_SplObjectStorageElement *element; in PHP_METHOD() local
600 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
603 zval_ptr_dtor(&element->inf); in PHP_METHOD()
604 ZVAL_COPY(&element->inf, inf); in PHP_METHOD()
625 spl_SplObjectStorageElement *element; in PHP_METHOD() local
646 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &pos)) == NULL) { in PHP_METHOD()
651 ZVAL_OBJ(&obj, element->obj); in PHP_METHOD()
654 php_var_serialize(&buf, &element->inf, &var_hash); in PHP_METHOD()
682 spl_SplObjectStorageElement *element; in PHP_METHOD() local
757 element = spl_object_storage_attach(intern, Z_OBJ_P(entry), Z_ISUNDEF(inf)?NULL:&inf); in PHP_METHOD()
758 var_replace(&var_hash, &inf, &element->inf); in PHP_METHOD()
943 spl_SplObjectStorageElement *element; in PHP_METHOD() local
952 while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL) { in PHP_METHOD()
953 if (fast_is_identical_function(&zinfo, &element->inf)) { in PHP_METHOD()
1009 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1018 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1019 zend_object *it = element->obj; in PHP_METHOD()
1030 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1039 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1040 zend_object *it = element->obj; in PHP_METHOD()
1051 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1068 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1069 zend_object *it = element->obj; in PHP_METHOD()
1092 spl_SplObjectStorageElement *element; in spl_multiple_iterator_get_all() local
1106 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in spl_multiple_iterator_get_all()
1107 zend_object *it = element->obj; in spl_multiple_iterator_get_all()
1139 switch (Z_TYPE(element->inf)) { in spl_multiple_iterator_get_all()
1141 add_index_zval(return_value, Z_LVAL(element->inf), &retval); in spl_multiple_iterator_get_all()
1144 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR(element->inf), &retval); in spl_multiple_iterator_get_all()