1--TEST-- 2Bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3) 3--FILE-- 4<?php 5class A { 6 function __destruct() { 7 try { 8 throw new Exception("2"); 9 } catch (Exception $e) { 10 echo $e->getMessage() . "\n"; 11 } 12 } 13} 14class B { 15 public $a; 16 function __construct() { 17 $this->a = new A(); 18 throw new Exception("1"); 19 } 20} 21try { 22 $b = new B(); 23} catch(Exception $e) { 24 echo $e->getMessage() . "\n"; 25} 26?> 27--EXPECT-- 282 291 30