diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-06-28 12:37:33 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-06-28 12:37:33 +0800 |
commit | 1f6b842af430b8cbba0fb1c38a2796ab399171c3 (patch) | |
tree | f22592309d8c1cb1ad50f3900f76f40955a18d73 /ext/reflection/php_reflection.c | |
parent | d1b1866a3a035b946e50b17eeefd19add81c7eab (diff) | |
download | php-git-1f6b842af430b8cbba0fb1c38a2796ab399171c3.tar.gz |
Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7c6e20c07e..95b86e7283 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4617,7 +4617,7 @@ ZEND_METHOD(reflection_class, getConstants) ZEND_HASH_FOREACH_STR_KEY_PTR(&ce->constants_table, key, c) { if (UNEXPECTED(zval_update_constant_ex(&c->value, ce) != SUCCESS)) { zend_array_destroy(Z_ARRVAL_P(return_value)); - return; + RETURN_NULL(); } val = zend_hash_add_new(Z_ARRVAL_P(return_value), key, &c->value); Z_TRY_ADDREF_P(val); |