Lines Matching refs:wr
72 zend_weakref *wr = ptr; in zend_weakref_unref_single() local
73 wr->referent = NULL; in zend_weakref_unref_single()
211 zend_weakref *wr = zend_object_alloc(sizeof(zend_weakref), zend_ce_weakref); in zend_weakref_new() local
213 zend_object_std_init(&wr->std, zend_ce_weakref); in zend_weakref_new()
214 return &wr->std; in zend_weakref_new()
226 zend_weakref *wr; in zend_weakref_find() local
228 wr = ptr; in zend_weakref_find()
229 RETVAL_OBJ_COPY(&wr->std); in zend_weakref_find()
246 zend_weakref *wr; in zend_weakref_create() local
250 wr = zend_weakref_fetch(return_value); in zend_weakref_create()
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()
257 zend_weakref *wr = zend_weakref_fetch(weakref); in zend_weakref_get() local
259 if (wr->referent) { in zend_weakref_get()
260 RETVAL_OBJ_COPY(wr->referent); in zend_weakref_get()
265 zend_weakref *wr = zend_weakref_from(zo); in zend_weakref_free() local
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()
271 zend_object_std_dtor(&wr->std); in zend_weakref_free()