summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30161.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug30161.phpt')
-rwxr-xr-xZend/tests/bug30161.phpt33
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--