php-src/Zend/tests/bug30161.phpt

35 lines
519 B
Plaintext
Raw Normal View History

2005-04-23 23:21:07 +08:00
--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) {
}
}
2018-09-17 01:16:42 +08:00
2005-04-23 23:21:07 +08:00
public function __toString() {
return "ok\n";
2005-04-23 23:21:07 +08:00
}
}
$db = new hariCow;
echo $db;
?>
--EXPECT--
ok