Lines Matching refs:element

118 static void spl_object_storage_dtor(zval *element) /* {{{ */  in spl_object_storage_dtor()  argument
120 spl_SplObjectStorageElement *el = Z_PTR_P(element); in spl_object_storage_dtor()
187 spl_SplObjectStorageElement *pelement, element; in spl_object_storage_attach() local
209 element.obj = obj; in spl_object_storage_attach()
212 ZVAL_COPY(&element.inf, inf); in spl_object_storage_attach()
214 ZVAL_NULL(&element.inf); in spl_object_storage_attach()
217 …pelement = zend_hash_update_mem(&intern->storage, key.key, &element, sizeof(spl_SplObjectStorageEl… in spl_object_storage_attach()
219 …pelement = zend_hash_index_update_mem(&intern->storage, key.h, &element, sizeof(spl_SplObjectStora… in spl_object_storage_attach()
246 spl_SplObjectStorageElement *element; in spl_object_storage_addall() local
248 ZEND_HASH_FOREACH_PTR(&other->storage, element) { in spl_object_storage_addall()
249 spl_object_storage_attach(intern, element->obj, &element->inf); in spl_object_storage_addall()
330 spl_SplObjectStorageElement *element; in spl_object_storage_debug_info() local
343 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_debug_info()
349 ZVAL_OBJ(&obj, element->obj); in spl_object_storage_debug_info()
351 add_assoc_zval_ex(&tmp, "inf", sizeof("inf") - 1, &element->inf); in spl_object_storage_debug_info()
367 spl_SplObjectStorageElement *element; in spl_object_storage_get_gc() local
370 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in spl_object_storage_get_gc()
371 zend_get_gc_buffer_add_obj(gc_buffer, element->obj); in spl_object_storage_get_gc()
372 zend_get_gc_buffer_add_zval(gc_buffer, &element->inf); in spl_object_storage_get_gc()
455 …spl_SplObjectStorageElement *element = zend_hash_index_find_ptr(&intern->storage, Z_OBJ_HANDLE_P(o… in spl_object_storage_has_dimension() local
456 if (!element) { in spl_object_storage_has_dimension()
461 return i_zend_is_true(&element->inf); in spl_object_storage_has_dimension()
474 …spl_SplObjectStorageElement *element = zend_hash_index_find_ptr(&intern->storage, Z_OBJ_HANDLE_P(o… in spl_object_storage_read_dimension() local
476 if (!element) { in spl_object_storage_read_dimension()
485 ZVAL_COPY_DEREF(rv, &element->inf); in spl_object_storage_read_dimension()
542 spl_SplObjectStorageElement *element; in PHP_METHOD() local
554 element = spl_object_storage_get(intern, &key); in PHP_METHOD()
557 if (!element) { in PHP_METHOD()
560 RETURN_COPY_DEREF(&element->inf); in PHP_METHOD()
588 spl_SplObjectStorageElement *element; in PHP_METHOD() local
597 while ((element = zend_hash_get_current_data_ptr(&other->storage)) != NULL) { in PHP_METHOD()
598 if (spl_object_storage_detach(intern, element->obj) == FAILURE) { in PHP_METHOD()
615 spl_SplObjectStorageElement *element; in PHP_METHOD() local
623 ZEND_HASH_FOREACH_PTR(&intern->storage, element) { in PHP_METHOD()
624 if (!spl_object_storage_contains(other, element->obj)) { in PHP_METHOD()
625 spl_object_storage_detach(intern, element->obj); in PHP_METHOD()
705 spl_SplObjectStorageElement *element; in PHP_METHOD() local
712 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
716 ZVAL_OBJ_COPY(return_value, element->obj); in PHP_METHOD()
722 spl_SplObjectStorageElement *element; in PHP_METHOD() local
729 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
732 ZVAL_COPY(return_value, &element->inf); in PHP_METHOD()
738 spl_SplObjectStorageElement *element; in PHP_METHOD() local
746 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) == NULL) { in PHP_METHOD()
750 ZVAL_COPY_VALUE(&garbage, &element->inf); in PHP_METHOD()
751 ZVAL_COPY(&element->inf, inf); in PHP_METHOD()
773 spl_SplObjectStorageElement *element; in PHP_METHOD() local
794 if ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &pos)) == NULL) { in PHP_METHOD()
799 ZVAL_OBJ(&obj, element->obj); in PHP_METHOD()
803 ZVAL_COPY(&inf_copy, &element->inf); in PHP_METHOD()
837 spl_SplObjectStorageElement *element; in PHP_METHOD() local
912 element = spl_object_storage_attach(intern, Z_OBJ_P(entry), Z_ISUNDEF(inf)?NULL:&inf); in PHP_METHOD()
913 var_replace(&var_hash, &inf, &element->inf); in PHP_METHOD()
1092 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1101 while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL) { in PHP_METHOD()
1102 if (fast_is_identical_function(&zinfo, &element->inf)) { in PHP_METHOD()
1158 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1167 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1168 zend_object *it = element->obj; in PHP_METHOD()
1179 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1188 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1189 zend_object *it = element->obj; in PHP_METHOD()
1200 spl_SplObjectStorageElement *element; in PHP_METHOD() local
1217 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in PHP_METHOD()
1218 zend_object *it = element->obj; in PHP_METHOD()
1241 spl_SplObjectStorageElement *element; in spl_multiple_iterator_get_all() local
1255 …while ((element = zend_hash_get_current_data_ptr_ex(&intern->storage, &intern->pos)) != NULL && !E… in spl_multiple_iterator_get_all()
1256 zend_object *it = element->obj; in spl_multiple_iterator_get_all()
1288 switch (Z_TYPE(element->inf)) { in spl_multiple_iterator_get_all()
1290 add_index_zval(return_value, Z_LVAL(element->inf), &retval); in spl_multiple_iterator_get_all()
1293 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR(element->inf), &retval); in spl_multiple_iterator_get_all()