mirror of
https://github.com/php/php-src.git
synced 2026-03-31 04:32:19 +02:00
- Fixed bug #49608 (Using CachingIterator on DirectoryIterator instance segfaults)
This commit is contained in:
@@ -1598,7 +1598,9 @@ static void spl_filesystem_dir_it_dtor(zend_object_iterator *iter TSRMLS_DC)
|
||||
|
||||
iterator->intern.data = NULL; /* mark as unused */
|
||||
zval_ptr_dtor(&iterator->current);
|
||||
zval_ptr_dtor(&zfree);
|
||||
if (zfree) {
|
||||
zval_ptr_dtor(&zfree);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user