summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-01-17 11:37:35 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-01-17 11:37:35 +0100
commit07bda97e765407bac9c37c9d4feb6aebb23434bd (patch)
tree580b0fad80e29f7d39bae827f5631dcb328231fe /ext/reflection/php_reflection.c
parent018251a7c492916a6fa2c0e9a5e7adaba14bd614 (diff)
downloadphp-git-07bda97e765407bac9c37c9d4feb6aebb23434bd.tar.gz
Fixed bug #79115
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index ac623e1c05..3fa4533e4e 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -4588,6 +4588,8 @@ ZEND_METHOD(reflection_class, isCloneable)
if (UNEXPECTED(object_init_ex(&obj, ce) != SUCCESS)) {
return;
}
+ /* We're not calling the constructor, so don't call the destructor either. */
+ zend_object_store_ctor_failed(Z_OBJ(obj));
RETVAL_BOOL(Z_OBJ_HANDLER(obj, clone_obj) != NULL);
zval_ptr_dtor(&obj);
}