]> granicus.if.org Git - php/commit
Reorder the oplines
authorXinchen Hui <laruence@gmail.com>
Sat, 17 Dec 2016 12:06:18 +0000 (20:06 +0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 17 Dec 2016 12:06:18 +0000 (20:06 +0800)
commita12f43ee2c3d27a7eb9a3c873901643df5f7197e
tree3899eb397c0d82d137bc39f79d1dd72c84f1a1bf
parent8ba7878f1b88f760d1cf483321e2ac1b27a93c58
Reorder the oplines

1. we should only do the return type checking when it is really about to
return
2. for 029.php, actually, the exception threw should be discard while it
jmp into finally(it could be observed by change the return to return an array)
3. after this fix, the test 029.phpt behavior consistently with 7.0
4. good for optimizer too
Zend/tests/return_types/029.phpt
Zend/zend_compile.c
ext/opcache/Optimizer/zend_optimizer.c