-
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.
Fix #76556: get_debug_info handler for BreakIterator shows wrong type
We use the retrieved type for the "type" element instead of the text. This has been confused during the PHP 7 upgrade[1]. [1] http://git.php.net/?p=php-src.git;a=commit;h=1d793348067e5769144c0f7efd86428a4137baec
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--TEST-- | ||
Bug #76556 (get_debug_info handler for BreakIterator shows wrong type) | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded('intl')) die('skip intl extension not available'); | ||
?> | ||
--FILE-- | ||
<?php | ||
$it = IntlBreakIterator::createCharacterInstance(); | ||
$it->setText('foo'); | ||
var_dump($it); | ||
?> | ||
===DONE=== | ||
--EXPECTF-- | ||
object(IntlRuleBasedBreakIterator)#%d (3) { | ||
["valid"]=> | ||
bool(true) | ||
["text"]=> | ||
string(3) "foo" | ||
["type"]=> | ||
string(%d) "%sRuleBasedBreakIterator%s" | ||
} | ||
===DONE=== |