summaryrefslogtreecommitdiff
path: root/Zend/tests/try/try_finally_012.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/try/try_finally_012.phpt')
-rw-r--r--Zend/tests/try/try_finally_012.phpt32
1 files changed, 16 insertions, 16 deletions
diff --git a/Zend/tests/try/try_finally_012.phpt b/Zend/tests/try/try_finally_012.phpt
index a099ed3d6b..c83bcdacbd 100644
--- a/Zend/tests/try/try_finally_012.phpt
+++ b/Zend/tests/try/try_finally_012.phpt
@@ -3,27 +3,27 @@ Try finally (exception in "return" statement)
--FILE--
<?php
class A {
- public $x = 1;
- public $y = 2;
- function __destruct() {
- throw new Exception();
- }
+ public $x = 1;
+ public $y = 2;
+ function __destruct() {
+ throw new Exception();
+ }
}
function foo() {
- foreach(new A() as $a) {
- try {
- return $a;
- } catch (Exception $e) {
- echo "exception in foo\n";
- } finally {
- echo "finally\n";
- }
- }
+ foreach(new A() as $a) {
+ try {
+ return $a;
+ } catch (Exception $e) {
+ echo "exception in foo\n";
+ } finally {
+ echo "finally\n";
+ }
+ }
}
try {
- foo();
+ foo();
} catch (Exception $e) {
- echo "exception in main\n";
+ echo "exception in main\n";
}
?>
--EXPECT--