diff options
Diffstat (limited to 'Zend/tests/bug30161.phpt')
-rwxr-xr-x | Zend/tests/bug30161.phpt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Zend/tests/bug30161.phpt b/Zend/tests/bug30161.phpt new file mode 100755 index 0000000000..038a151e0e --- /dev/null +++ b/Zend/tests/bug30161.phpt @@ -0,0 +1,33 @@ +--TEST-- +Bug #30161 (Segmentation fault with exceptions) +--FILE-- +<?php +class FIIFO { + + public function __construct() { + throw new Exception; + } + +} + +class hariCow extends FIIFO { + + public function __construct() { + try { + parent::__construct(); + } catch(Exception $e) { + } + } + + public function __toString() { + return "Rusticus in asino sedet."; + } + +} + + +$db = new hariCow; + +echo $db; +?> +--EXPECT-- |