Lines Matching refs:element
109 static void spl_object_storage_dtor(zval *element) /* {{{ */ in spl_object_storage_dtor() argument
111 spl_SplObjectStorageElement *el = Z_PTR_P(element); in spl_object_storage_dtor()
128 spl_SplObjectStorageElement *pelement, element; in spl_object_storage_attach() local
147 ZVAL_COPY(&element.obj, obj); in spl_object_storage_attach()
149 ZVAL_COPY(&element.inf, inf); in spl_object_storage_attach()
151 ZVAL_NULL(&element.inf); in spl_object_storage_attach()
154 …pelement = zend_hash_update_mem(&intern->storage, key.key, &element, sizeof(spl_SplObjectStorageEl… in spl_object_storage_attach()
156 …pelement = zend_hash_index_update_mem(&intern->storage, key.h, &element, sizeof(spl_SplObjectStora… in spl_object_storage_attach()
180 spl_SplObjectStorageElement *element; in spl_object_storage_addall() local
182 ZEND_HASH_FOREACH_PTR(&other->storage, element) { in spl_object_storage_addall()
183 spl_object_storage_attach(intern, &element->obj, &element->inf); in spl_object_storage_addall()
244 spl_SplObjectStorageElement *element; in spl_object_storage_debug_info() local
258 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_debug_info()
259 md5str = php_spl_object_hash(&element->obj); in spl_object_storage_debug_info()
264 add_assoc_zval_ex(&tmp, "obj", sizeof("obj") - 1, &element->obj); in spl_object_storage_debug_info()
265 add_assoc_zval_ex(&tmp, "inf", sizeof("inf") - 1, &element->inf); in spl_object_storage_debug_info()
282 spl_SplObjectStorageElement *element; in spl_object_storage_get_gc() local
285 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_get_gc()
286 zend_get_gc_buffer_add_zval(gc_buffer, &element->obj); in spl_object_storage_get_gc()
287 zend_get_gc_buffer_add_zval(gc_buffer, &element->inf); in spl_object_storage_get_gc()
391 spl_SplObjectStorageElement *element; in PHP_METHOD() local
403 element = spl_object_storage_get(intern, &key); in PHP_METHOD()
406 if (!element) { in PHP_METHOD()
409 zval *value = &element->inf; in PHP_METHOD()
439 spl_SplObjectStorageElement *element; in PHP_METHOD() local
448 while ((element = zend_hash_get_current_data_ptr(&other->storage)) != NULL) { in PHP_METHOD()
449 if (spl_object_storage_detach(intern, &element->obj) == FAILURE) { in PHP_METHOD()
466 spl_SplObjectStorageElement *element; in PHP_METHOD() local
474 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in PHP_METHOD()
475 if (!spl_object_storage_contains(other, &element->obj)) { in PHP_METHOD()
476 spl_object_storage_detach(intern, &element->obj); in PHP_METHOD()
565 spl_SplObjectStorageElement *element; in PHP_METHOD() local
572 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
575 ZVAL_COPY(return_value, &element->obj); in PHP_METHOD()
581 spl_SplObjectStorageElement *element; in PHP_METHOD() local
588 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
591 ZVAL_COPY(return_value, &element->inf); in PHP_METHOD()
597 spl_SplObjectStorageElement *element; in PHP_METHOD() local
605 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
608 zval_ptr_dtor(&element->inf); in PHP_METHOD()
609 ZVAL_COPY(&element->inf, inf); in PHP_METHOD()
630 spl_SplObjectStorageElement *element; in PHP_METHOD() local
650 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &pos)) == NULL) { in PHP_METHOD()
655 php_var_serialize(&buf, &element->obj, &var_hash); in PHP_METHOD()
657 php_var_serialize(&buf, &element->inf, &var_hash); in PHP_METHOD()
686 spl_SplObjectStorageElement *element; in PHP_METHOD() local
765 element = spl_object_storage_attach(intern, &entry, Z_ISUNDEF(inf)?NULL:&inf); in PHP_METHOD()
766 var_replace(&var_hash, &entry, &element->obj); in PHP_METHOD()
767 var_replace(&var_hash, &inf, &element->inf); in PHP_METHOD()
954 spl_SplObjectStorageElement *element; in PHP_METHOD() local
963 while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL) { in PHP_METHOD()
964 if (fast_is_identical_function(&zinfo, &element->inf)) { in PHP_METHOD()
1020 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1030 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1031 it = &element->obj; in PHP_METHOD()
1042 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1052 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1053 it = &element->obj; in PHP_METHOD()
1064 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1081 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1082 it = &element->obj; in PHP_METHOD()
1105 spl_SplObjectStorageElement *element; in spl_multiple_iterator_get_all() local
1117 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in spl_multiple_iterator_get_all()
1118 it = &element->obj; in spl_multiple_iterator_get_all()
1150 switch (Z_TYPE(element->inf)) { in spl_multiple_iterator_get_all()
1152 add_index_zval(return_value, Z_LVAL(element->inf), &retval); in spl_multiple_iterator_get_all()
1155 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR(element->inf), &retval); in spl_multiple_iterator_get_all()