mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
MFH: Fixed bug #61072 (Memory leak when restoring an exception handler).
This commit is contained in:
parent
0e4d46a3a7
commit
213145a6da
2
NEWS
2
NEWS
@ -5,6 +5,8 @@ PHP NEWS
|
||||
- Core:
|
||||
. Fixed bug #61225 (Incorect lexing of 0b00*+<NUM>). (Pierrick)
|
||||
. Fixed bug #61165 (Segfault - strip_tags()). (Laruence)
|
||||
. Fixed bug #61072 (Memory leak when restoring an exception handler).
|
||||
(Nikic, Laruence)
|
||||
|
||||
- Standard:
|
||||
. Fixed memory leak in substr_replace. (Pierrick)
|
||||
|
@ -1615,8 +1615,7 @@ ZEND_FUNCTION(set_exception_handler)
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
||||
*EG(user_exception_handler) = *exception_handler;
|
||||
zval_copy_ctor(EG(user_exception_handler));
|
||||
MAKE_COPY_ZVAL(&exception_handler, EG(user_exception_handler));
|
||||
|
||||
if (!had_orig_exception_handler) {
|
||||
RETURN_NULL();
|
||||
|
Loading…
Reference in New Issue
Block a user