From 2135b057ec33bb480a10f642a3e42ba10364b81e Mon Sep 17 00:00:00 2001 From: David Matejka Date: Sat, 15 Apr 2017 00:20:06 +0200 Subject: [PATCH] Fixed bug #74444: multiple catch freezes in some cases zend_emit_jump() may reallocate, so reload the opline. --- NEWS | 1 + Zend/tests/try/bug74444.phpt | 77 ++++++++++++++++++++++++++++++++++++ Zend/zend_compile.c | 1 + 3 files changed, 79 insertions(+) create mode 100644 Zend/tests/try/bug74444.phpt diff --git a/NEWS b/NEWS index 6af7477ac6..c8c57bef08 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ PHP NEWS (Nikita) . Fixed bug #74188 (Null coalescing operator fails for undeclared static class properties). (tpunt) + . Fixed bug #74444 (multiple catch freezes in some cases). (David Matějka) - Date: . Fixed bug #74404 (Wrong reflection on DateTimeZone::getTransitions). diff --git a/Zend/tests/try/bug74444.phpt b/Zend/tests/try/bug74444.phpt new file mode 100644 index 0000000000..838d12ef03 --- /dev/null +++ b/Zend/tests/try/bug74444.phpt @@ -0,0 +1,77 @@ +--TEST-- +Bug #74444 (multiple catch freezes in some cases) +--FILE-- +opcodes[opnum_catch]; opline->extended_value = get_next_op_number(CG(active_op_array)); } } -- 2.50.1