Lines Matching refs:referent
25 zend_object *referent; member
73 wr->referent = NULL; in zend_weakref_unref_single()
217 static zend_always_inline bool zend_weakref_find(zend_object *referent, zval *return_value) { in zend_weakref_find() argument
218 void *tagged_ptr = zend_hash_index_find_ptr(&EG(weakrefs), zend_object_to_weakref_key(referent)); in zend_weakref_find()
245 static zend_always_inline void zend_weakref_create(zend_object *referent, zval *return_value) { in zend_weakref_create() argument
251 wr->referent = referent; in zend_weakref_create()
253 zend_weakref_register(wr->referent, ZEND_WEAKREF_ENCODE(wr, ZEND_WEAKREF_TAG_REF)); in zend_weakref_create()
259 if (wr->referent) { in zend_weakref_get()
260 RETVAL_OBJ_COPY(wr->referent); in zend_weakref_get()
267 if (wr->referent) { in zend_weakref_free()
268 zend_weakref_unregister(wr->referent, ZEND_WEAKREF_ENCODE(wr, ZEND_WEAKREF_TAG_REF), 1); in zend_weakref_free()
281 zend_object *referent; in ZEND_METHOD() local
284 Z_PARAM_OBJ(referent) in ZEND_METHOD()
287 if (zend_weakref_find(referent, return_value)) { in ZEND_METHOD()
291 zend_weakref_create(referent, return_value); in ZEND_METHOD()