6 changed files with 80 additions and 7 deletions
-
2NEWS
-
39Zend/tests/bug66608.phpt
-
3Zend/zend_compile.h
-
25Zend/zend_opcode.c
-
9Zend/zend_vm_def.h
-
9Zend/zend_vm_execute.h
@ -0,0 +1,39 @@ |
|||
--TEST-- |
|||
Bug #66608 (Incorrect behavior with nested "finally" blocks) |
|||
--FILE-- |
|||
<?php |
|||
function bar() { |
|||
try { |
|||
echo "1\n"; |
|||
} finally { |
|||
try { |
|||
throw new Exception (""); |
|||
} catch (Exception $ab) { |
|||
echo "2\n"; |
|||
} finally { |
|||
try { |
|||
} finally { |
|||
echo "3\n"; |
|||
try { |
|||
} finally { |
|||
} |
|||
echo "4\n"; |
|||
} |
|||
} |
|||
echo "5\n"; |
|||
try { |
|||
} finally { |
|||
echo "6\n"; |
|||
} |
|||
} |
|||
echo "7\n"; |
|||
} |
|||
bar(); |
|||
--EXPECT-- |
|||
1 |
|||
2 |
|||
3 |
|||
4 |
|||
5 |
|||
6 |
|||
7 |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue