mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
Fixed bug #61072 (Memory leak when restoring an exception handler)
This commit is contained in:
parent
e78aa1b3b4
commit
5d683614f9
2 changed files with 3 additions and 2 deletions
2
NEWS
2
NEWS
|
@ -6,6 +6,8 @@ PHP NEWS
|
||||||
. World domination
|
. World domination
|
||||||
|
|
||||||
- Core:
|
- Core:
|
||||||
|
. Fixed bug #61072 (Memory leak when restoring an exception handler).
|
||||||
|
(Nikic, Laruence)
|
||||||
. Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical
|
. Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical
|
||||||
vars). (Laruence)
|
vars). (Laruence)
|
||||||
. Fixed bug #60978 (exit code incorrect). (Laruence)
|
. Fixed bug #60978 (exit code incorrect). (Laruence)
|
||||||
|
|
|
@ -1615,8 +1615,7 @@ ZEND_FUNCTION(set_exception_handler)
|
||||||
RETURN_TRUE;
|
RETURN_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
*EG(user_exception_handler) = *exception_handler;
|
MAKE_COPY_ZVAL(&exception_handler, EG(user_exception_handler));
|
||||||
zval_copy_ctor(EG(user_exception_handler));
|
|
||||||
|
|
||||||
if (!had_orig_exception_handler) {
|
if (!had_orig_exception_handler) {
|
||||||
RETURN_NULL();
|
RETURN_NULL();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue