Fix #63206: Fully support error/exception_handler stacking, even with null or inside...
authorMark Plomer <mark.plomer@boerse-go.de>
Mon, 24 Feb 2020 20:32:02 +0000 (21:32 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 25 Feb 2020 11:43:42 +0000 (12:43 +0100)
commit8c6a7c3326f000af0a8ea266143059e5a463e626
tree3bc0ed7a59127e2f0bd17c27446e6afd227f0913
parent56cdbe63c24b86c2f1d60bf2609fde113d12d235
Fix #63206: Fully support error/exception_handler stacking, even with null or inside the handler

Always push the current user_error/exception_handler to the stack,
even when it is empty, so restore_error_handler() always works as
expected.

The user_error_handler is especially temporarily empty when we are inside
the error handler, which caused inconsistent behaviour before.
NEWS
Zend/tests/bug63206.phpt [new file with mode: 0644]
Zend/tests/bug63206_1.phpt [new file with mode: 0644]
Zend/tests/bug63206_2.phpt [new file with mode: 0644]
Zend/zend_builtin_functions.c