mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
13 lines
457 B
PHP
13 lines
457 B
PHP
--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 int in %sbug73337.php on line 3
|
|
|
|
Notice: Object of class d could not be converted to int in %sbug73337.php on line 3
|
|
Exception properly caught
|