diff options
Diffstat (limited to 'tests/lang/bug26866.phpt')
-rw-r--r-- | tests/lang/bug26866.phpt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lang/bug26866.phpt b/tests/lang/bug26866.phpt index abb99c34fd..7761b65d8a 100644 --- a/tests/lang/bug26866.phpt +++ b/tests/lang/bug26866.phpt @@ -3,22 +3,22 @@ Bug #26866 (segfault when exception raised in __get) --FILE-- <?php class bar { - function get_name() { - return 'bar'; - } + function get_name() { + return 'bar'; + } } class foo { - function __get($sName) { - throw new Exception('Exception!'); - return new bar(); - } + function __get($sName) { + throw new Exception('Exception!'); + return new bar(); + } } $foo = new foo(); try { - echo $foo->bar->get_name(); + echo $foo->bar->get_name(); } catch (Exception $E) { - echo "Exception raised!\n"; + echo "Exception raised!\n"; } ?> --EXPECT-- |