Skip to content

Commit 2160f5c

Browse files
committed
Call zpp_none in PharFileInfo::__destruct()
Using __destruct() with internal classes is dubious, but not so simple to avoid here because the code extends SPL classes.
1 parent 50de334 commit 2160f5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/phar/phar_object.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4456,6 +4456,10 @@ PHP_METHOD(PharFileInfo, __destruct)
44564456
zval *zobj = ZEND_THIS;
44574457
phar_entry_object *entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset);
44584458

4459+
if (zend_parse_parameters_none() == FAILURE) {
4460+
RETURN_THROWS();
4461+
}
4462+
44594463
if (entry_obj->entry && entry_obj->entry->is_temp_dir) {
44604464
if (entry_obj->entry->filename) {
44614465
efree(entry_obj->entry->filename);

0 commit comments

Comments
 (0)