mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
30 lines
353 B
Plaintext
30 lines
353 B
Plaintext
|
--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
|