summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30707.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-05-04 11:17:30 +0000
committerDmitry Stogov <dmitry@php.net>2005-05-04 11:17:30 +0000
commit5e4d91582a32f73e368200037ebc2643ab71d554 (patch)
treeba2c170d0b680183795172a1d57032a42cc57ffc /Zend/tests/bug30707.phpt
parent37d16df05ceefaa519ca673c36a5e8d8f28e6169 (diff)
downloadphp-git-5e4d91582a32f73e368200037ebc2643ab71d554.tar.gz
Fixed bug #30707 (Segmentation fault on exception in method)
Diffstat (limited to 'Zend/tests/bug30707.phpt')
-rwxr-xr-xZend/tests/bug30707.phpt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Zend/tests/bug30707.phpt b/Zend/tests/bug30707.phpt
new file mode 100755
index 0000000000..d37d32974e
--- /dev/null
+++ b/Zend/tests/bug30707.phpt
@@ -0,0 +1,29 @@
+--TEST--
+Bug #30707 (Segmentation fault on exception in method)
+--FILE--
+<?php
+class C {
+ function byePHP($plop) {
+ echo "ok\n";
+ }
+
+ function plip() {
+ try {
+ $this->plap($this->plop());
+ } catch(Exception $e) {
+ }
+ }
+
+ function plap($a) {
+ }
+
+ function plop() {
+ throw new Exception;
+ }
+}
+
+$x = new C;
+$x->byePHP($x->plip());
+?>
+--EXPECT--
+ok