]> granicus.if.org Git - php/commit
Support trivial finally in generators (no yield, no return)
authorNikita Popov <nikic@php.net>
Mon, 13 Aug 2012 15:17:18 +0000 (17:17 +0200)
committerNikita Popov <nikic@php.net>
Mon, 13 Aug 2012 15:22:21 +0000 (17:22 +0200)
commitae716939eb500f962336d37b96069cb7452c25df
tree7d2e911f7d0ee3bbe6c495754b5eeedc7c72dde7
parentf4ce3646285fbdd3354ca86ae67857b6ee8f7e3a
Support trivial finally in generators (no yield, no return)

The finally clause is now properly run when an exception is thrown in the
try-block. It is not yet run on `return` and also not run when the generator
is claused within a try block.

I'll add those two things as soon as laruence refactored the finally code.
Zend/zend_vm_def.h
Zend/zend_vm_execute.h