We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e78aa1b commit 5d68361Copy full SHA for 5d68361
NEWS
@@ -6,6 +6,8 @@ PHP NEWS
6
. World domination
7
8
- Core:
9
+ . Fixed bug #61072 (Memory leak when restoring an exception handler).
10
+ (Nikic, Laruence)
11
. Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical
12
vars). (Laruence)
13
. Fixed bug #60978 (exit code incorrect). (Laruence)
Zend/zend_builtin_functions.c
@@ -1615,8 +1615,7 @@ ZEND_FUNCTION(set_exception_handler)
1615
RETURN_TRUE;
1616
}
1617
1618
- *EG(user_exception_handler) = *exception_handler;
1619
- zval_copy_ctor(EG(user_exception_handler));
+ MAKE_COPY_ZVAL(&exception_handler, EG(user_exception_handler));
1620
1621
if (!had_orig_exception_handler) {
1622
RETURN_NULL();
0 commit comments