We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e14b51 commit 0e762b1Copy full SHA for 0e762b1
ext/zend_test/test.c
@@ -509,9 +509,9 @@ PHP_RINIT_FUNCTION(zend_test)
509
510
PHP_RSHUTDOWN_FUNCTION(zend_test)
511
{
512
- zend_ulong objptr;
513
- ZEND_HASH_FOREACH_NUM_KEY(&ZT_G(global_weakmap), objptr) {
514
- zend_weakrefs_hash_del(&ZT_G(global_weakmap), (zend_object *)(uintptr_t)objptr);
+ zend_ulong obj_key;
+ ZEND_HASH_FOREACH_NUM_KEY(&ZT_G(global_weakmap), obj_key) {
+ zend_weakrefs_hash_del(&ZT_G(global_weakmap), zend_weakref_key_to_zend_object_ptr(obj_key));
515
} ZEND_HASH_FOREACH_END();
516
zend_hash_destroy(&ZT_G(global_weakmap));
517
return SUCCESS;
0 commit comments