Skip to content

Commit e69811d

Browse files
committed
Test
1 parent e942c09 commit e69811d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_weakrefs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ void zend_weakrefs_init(void) {
199199
/* This is called when the object is garbage collected
200200
* to remove all WeakReference and WeakMap entries weakly referencing that object. */
201201
void zend_weakrefs_notify(zend_object *object) {
202+
printf("Notify from %p\n", object);
203+
202204
/* Annoyingly we can't use the HT destructor here, because we need access to the key (which
203205
* is the object address), which is not provided to the dtor. */
204206
const zend_ulong obj_key = zend_object_to_weakref_key(object);

0 commit comments

Comments
 (0)