bug73337.phpt 463 B

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