]> granicus.if.org Git - php/commit
Rethrow generator exception even without active stack frame
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 18 Dec 2019 10:02:44 +0000 (11:02 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 18 Dec 2019 10:04:15 +0000 (11:04 +0100)
commit897d99c7a4c80f6f638600a92d14cc940473690a
tree38d49181f515924ed4a24d25ba9c3b01ad50f8e9
parent189f625e2b2a65edf406332bf87c81bab1b463af
Rethrow generator exception even without active stack frame

Finally blocks in generators may be invoked during shutdown, in
which case we don't have a stack frame. Similar to what
zend_call_function does, we still need to rethrow these exceptions,
otherwise they will be hidden (and leak).
Zend/tests/generators/exception_during_shutdown.phpt [new file with mode: 0644]
Zend/zend_generators.c