summaryrefslogtreecommitdiff
path: root/Zend/tests/bug73337.phpt
blob: 53ce963c529fa981124b98436c54fdd08b4ca52d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #73337 (try/catch not working with two exceptions inside a same operation)
--FILE--
<?php
class d { function __destruct() { throw new Exception; } }
try { new d + new d; } catch (Exception $e) { print "Exception properly caught\n"; }
?>
--EXPECTF--
Notice: Object of class d could not be converted to number in %sbug73337.php on line 3

Notice: Object of class d could not be converted to number in %sbug73337.php on line 3
Exception properly caught