xref: /PHP-7.2/Zend/tests/bug30707.phpt (revision 17ccbeec)
1--TEST--
2Bug #30707 (Segmentation fault on exception in method)
3--FILE--
4<?php
5class C {
6	function byePHP($plop) {
7		echo "ok\n";
8	}
9
10	function plip() {
11		try {
12			$this->plap($this->plop());
13		}	catch(Exception $e) {
14		}
15	}
16
17	function plap($a) {
18	}
19
20	function plop() {
21		throw new Exception;
22	}
23}
24
25$x = new C;
26$x->byePHP($x->plip());
27?>
28--EXPECT--
29ok
30