2015-07-08 17:15:09 +08:00
|
|
|
--TEST--
|
|
|
|
Bug #70012 (Exception lost with nested finally block)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
try {
|
2020-02-04 05:52:20 +08:00
|
|
|
echo "Outer try\n";
|
|
|
|
try {
|
|
|
|
echo " Middle try\n";
|
|
|
|
throw new Exception();
|
|
|
|
} finally {
|
|
|
|
echo " Middle finally\n";
|
|
|
|
try {
|
|
|
|
echo " Inner try\n";
|
|
|
|
} finally {
|
|
|
|
echo " Inner finally\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo "Outer shouldn't get here\n";
|
2015-07-08 17:15:09 +08:00
|
|
|
} catch (Exception $e) {
|
2020-02-04 05:52:20 +08:00
|
|
|
echo "Outer catch\n";
|
2015-07-08 17:15:09 +08:00
|
|
|
} finally {
|
2020-02-04 05:52:20 +08:00
|
|
|
echo "Outer finally\n";
|
2015-07-08 17:15:09 +08:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
Outer try
|
|
|
|
Middle try
|
|
|
|
Middle finally
|
|
|
|
Inner try
|
|
|
|
Inner finally
|
|
|
|
Outer catch
|
|
|
|
Outer finally
|