diff options
| author | Antony Dovgal <tony2001@php.net> | 2005-11-14 21:52:27 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2005-11-14 21:52:27 +0000 |
| commit | e658842761f3d2443ca547379e054c95ca308378 (patch) | |
| tree | 4268fa6237610944479e339b0aa104fa44ef4533 /ext/spl/spl_array.c | |
| parent | 641bb46969b9684ce5b8333a7202daed8697bdc7 (diff) | |
| download | php-git-e658842761f3d2443ca547379e054c95ca308378.tar.gz | |
fix #35197 (Destructor is not called) and similar issues in other extensions
Diffstat (limited to 'ext/spl/spl_array.c')
| -rwxr-xr-x | ext/spl/spl_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index d428699f2a..c768b10284 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -146,7 +146,7 @@ static zend_object_value spl_array_object_new_ex(zend_class_entry *class_type, s intern->ar_flags &= ~SPL_ARRAY_IS_REF; } - retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) spl_array_object_free_storage, NULL TSRMLS_CC); + retval.handle = zend_objects_store_put(intern, (zend_objects_store_dtor_t)zend_objects_destroy_object, (zend_objects_free_object_storage_t) spl_array_object_free_storage, NULL TSRMLS_CC); while (parent) { if (parent == U_CLASS_ENTRY(spl_ce_ArrayIterator)) { retval.handlers = &spl_handler_ArrayIterator; |
