-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before the zval -> zend_object migration, this code used macros like FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK, which internally clear the error. Now that they are no longer used, we need to manually clear the error.
- Loading branch information
Showing
5 changed files
with
30 additions
and
0 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
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
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,21 @@ | ||
--TEST-- | ||
Bug #81019: Unable to clone NumberFormatter after failed parse() | ||
--FILE-- | ||
<?php | ||
|
||
$fmt = new NumberFormatter('en_US', NumberFormatter::DECIMAL); | ||
$fmt->parse('abc'); | ||
$fmt2 = clone $fmt; | ||
|
||
$datefmt = new IntlDateFormatter('en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL); | ||
$datefmt->parse('abc'); | ||
$datefmt2 = clone $datefmt; | ||
|
||
$msgfmt = new MessageFormatter('en_US', '{0,number,integer}'); | ||
$msgfmt->parse('abc'); | ||
$msgfmt2 = clone $msgfmt; | ||
|
||
?> | ||
===DONE=== | ||
--EXPECT-- | ||
===DONE=== |