--TEST-- Bug #52361 (Throwing an exception in a destructor causes invalid catching) --FILE-- --EXPECTF-- 1. exception 'Exception' with message 'aaa' in %sbug52361.php:5 Stack trace: #0 %sbug52361.php(16): aaa->__destruct() #1 %sbug52361.php(16): bbb() #2 {main} 2. exception 'Exception' with message 'bbb' in %sbug52361.php:13 Stack trace: #0 %sbug52361.php(16): bbb() #1 {main}