diff options
Diffstat (limited to 'Zend/tests/bug71163.phpt')
-rw-r--r-- | Zend/tests/bug71163.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/bug71163.phpt b/Zend/tests/bug71163.phpt new file mode 100644 index 0000000000..102b1b93ec --- /dev/null +++ b/Zend/tests/bug71163.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #71163 (Segmentation Fault (cleanup_unfinished_calls)) +--FILE-- +<?php +function __autoload($name) { + eval ("class $name extends Exception { public static function foo() {}}"); + throw new Exception("boom"); +} + +function test2() { + try { + Test::foo(); + } catch (Exception $e) { + echo "okey"; + } +} + +function test() { + test2(); +} + +test(); +?> +--EXPECT-- +okey |