File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ PHP NEWS
1616 . Fixed NULL arithmetic during system program execution on Windows. (cmb,
1717 nielsdos)
1818 . Fixed potential OOB when checking for trailing spaces on Windows. (cmb)
19+ . Fixed bug GH-17408 (Assertion failure Zend/zend_exceptions.c).
20+ (nielsdos, ilutov)
1921
2022- DOM:
2123 . Fixed bug GH-17397 (Assertion failure ext/dom/php_dom.c). (nielsdos)
Original file line number Diff line number Diff line change @@ -194,7 +194,6 @@ ZEND_API ZEND_COLD void zend_throw_exception_internal(zend_object *exception) /*
194194 zend_exception_set_previous (exception , EG (exception ));
195195 EG (exception ) = exception ;
196196 if (previous ) {
197- ZEND_ASSERT (is_handle_exception_set () && "HANDLE_EXCEPTION not set?" );
198197 return ;
199198 }
200199 }
Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-17408 (Assertion failure Zend/zend_exceptions.c)
3+ --EXTENSIONS--
4+ zend_test
5+ --FILE--
6+ <?php
7+ function test () {
8+ $ resource = zend_test_create_throwing_resource ();
9+ zend_test_create_throwing_resource ();
10+ }
11+ test ();
12+ ?>
13+ --EXPECTF--
14+ Fatal error: Uncaught Exception: Throwing resource destructor called in %s:%d
15+ Stack trace:
16+ #0 %s(%d): test()
17+ #1 {main}
18+
19+ Next Exception: Throwing resource destructor called in %s:%d
20+ Stack trace:
21+ #0 {main}
22+ thrown in %s on line %d
You can’t perform that action at this time.
0 commit comments