]> granicus.if.org Git - php/commit
Drop FREE_ON_RETURN flag, check brk_cont->start instead
authorNikita Popov <nikic@php.net>
Fri, 22 May 2015 19:05:47 +0000 (21:05 +0200)
committerNikita Popov <nikic@php.net>
Sat, 23 May 2015 08:51:33 +0000 (10:51 +0200)
commitd0e265392fdb41d34984fa9794e4aad65e44d86b
tree3e7db4c984e7f7a6b0b905528014983f16e9cddd
parent1bee093ecae1c0ca92375e6175cadb2f947f93b9
Drop FREE_ON_RETURN flag, check brk_cont->start instead

Start >= 0 already tells us whether or not the loop has a loop
variable, no need to add extra flags to opcodes.

Also added a test for a case where FREE_ON_RETURN is relevant,
we didn't seem to have any coverage for this.
Zend/tests/loop_free_on_return.phpt [new file with mode: 0644]
Zend/zend_compile.c
Zend/zend_compile.h
Zend/zend_execute.c
Zend/zend_vm_def.h
Zend/zend_vm_execute.h