mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Bugfix #24637 __destruct not called
This commit is contained in:
parent
3466a48add
commit
2bbf4ad261
@ -1547,6 +1547,9 @@ static void do_inherit_parent_constructor(zend_class_entry *ce)
|
||||
}
|
||||
if (!ce->__call) {
|
||||
ce->__call = ce->parent->__call;
|
||||
}
|
||||
if (!ce->destructor) {
|
||||
ce->destructor = ce->parent->destructor;
|
||||
}
|
||||
ce->create_object = ce->parent->create_object;
|
||||
if (ce->constructor) {
|
||||
|
Loading…
Reference in New Issue
Block a user