mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
35 lines
527 B
PHP
Executable File
35 lines
527 B
PHP
Executable File
--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 "ok\n";
|
|
}
|
|
|
|
}
|
|
|
|
|
|
$db = new hariCow;
|
|
|
|
echo $db;
|
|
?>
|
|
--EXPECT--
|
|
ok
|