diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-05-04 11:17:30 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-05-04 11:17:30 +0000 |
commit | 5e4d91582a32f73e368200037ebc2643ab71d554 (patch) | |
tree | ba2c170d0b680183795172a1d57032a42cc57ffc /Zend/tests/bug30707.phpt | |
parent | 37d16df05ceefaa519ca673c36a5e8d8f28e6169 (diff) | |
download | php-git-5e4d91582a32f73e368200037ebc2643ab71d554.tar.gz |
Fixed bug #30707 (Segmentation fault on exception in method)
Diffstat (limited to 'Zend/tests/bug30707.phpt')
-rwxr-xr-x | Zend/tests/bug30707.phpt | 29 |
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 |