forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-7.1: Fixed bug #73337 (try/catch not working with two exceptions inside a same operation) Revert "Fix bug #47890 #73215 uniqid() should use better random source" Revert "Fix bug #47890 #73215 uniqid() should use better random source" Update NEWS
- Loading branch information
Showing
4 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters