]> granicus.if.org Git - php/commit
Avoid op_num = -1 in unfinished generator cleanup
authorNikita Popov <nikic@php.net>
Tue, 23 Jun 2015 18:13:25 +0000 (20:13 +0200)
committerNikita Popov <nikic@php.net>
Tue, 23 Jun 2015 18:17:30 +0000 (20:17 +0200)
commitea5c66ec9310430111b48d4589e56cea5c0b5ab0
treed4a4981ade3a28a11328f6f2e45eec2e738ffcaa
parentf4d08d8e5cb413f4d70a1f64f16b6b0ce1808e21
Avoid op_num = -1 in unfinished generator cleanup

Also add two tests showing that the -1 substraction in the
computation of op_num is really necessary.
Zend/tests/generators/aborted_yield_during_nested_fcalls.phpt [new file with mode: 0644]
Zend/tests/generators/aborted_yield_during_switch.phpt [new file with mode: 0644]
Zend/zend_generators.c