mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
5bc1e224db
RFC: https://wiki.php.net/rfc/arithmetic_operator_type_checks Closes GH-5331.
10 lines
287 B
PHP
10 lines
287 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"; }
|
|
?>
|
|
--EXPECT--
|
|
Exception properly caught
|