2010-05-11 16:09:43 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3)
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
class A {
|
2020-02-03 21:52:20 +00:00
|
|
|
function __destruct() {
|
|
|
|
try {
|
|
|
|
throw new Exception("2");
|
|
|
|
} catch (Exception $e) {
|
|
|
|
echo $e->getMessage() . "\n";
|
|
|
|
}
|
|
|
|
}
|
2010-05-11 16:09:43 +00:00
|
|
|
}
|
|
|
|
class B {
|
2020-02-03 21:52:20 +00:00
|
|
|
function __construct() {
|
|
|
|
$this->a = new A();
|
|
|
|
throw new Exception("1");
|
|
|
|
}
|
2010-05-11 16:09:43 +00:00
|
|
|
}
|
|
|
|
try {
|
2020-02-03 21:52:20 +00:00
|
|
|
$b = new B();
|
2010-05-11 16:09:43 +00:00
|
|
|
} catch(Exception $e) {
|
2020-02-03 21:52:20 +00:00
|
|
|
echo $e->getMessage() . "\n";
|
2010-05-11 16:09:43 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
2
|
|
|
|
1
|