Hi Mikko, thanks for filing this report. I can confirm that the wrong behavior happens on Lucid's php5-cli package.
I can also confirm that this was resolved upstream in version 5.3.3: https://bugs.php.net/bug.php?id=52361 These two commits *could* be backported to Lucid's PHP: http://svn.php.net/viewvc/?view=revision&revision=302323 http://svn.php.net/viewvc/?view=revision&revision=302311 However, I'm not convinced this is a High or Critical importance bug fix. Users can (and should!) upgrade to Ubuntu 12.04.1 and have this resolved. I do acknowledge though that this might be raised in importance if it is seen as a security problem. ** Bug watch added: bugs.php.net/ #52361 http://bugs.php.net/bug.php?id=52361 ** Changed in: php5 (Ubuntu) Status: New => Fix Released ** Also affects: php via http://bugs.php.net/bug.php?id=52361 Importance: Unknown Status: Unknown ** Also affects: php5 (Ubuntu Lucid) Importance: Undecided Status: New ** Changed in: php5 (Ubuntu Lucid) Status: New => Triaged ** Changed in: php5 (Ubuntu Lucid) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1042711 Title: php: throw and catch within a destructor causes exception on-the-fly to be lost To manage notifications about this bug go to: https://bugs.launchpad.net/php/+bug/1042711/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs