diff options
author | Scott MacVicar <scottmac@php.net> | 2009-01-08 14:09:49 +0000 |
---|---|---|
committer | Scott MacVicar <scottmac@php.net> | 2009-01-08 14:09:49 +0000 |
commit | 6fe58b3542df59666b7cc118daa558df518dcdf4 (patch) | |
tree | 6611498080049dc717d588ddd1696827914f4ef2 | |
parent | b08ceb79b31102b6372e27bc984e11fe2db9206b (diff) | |
download | php-git-6fe58b3542df59666b7cc118daa558df518dcdf4.tar.gz |
Fix test again...
-rw-r--r-- | ext/json/tests/bug46944.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/tests/bug46944.phpt b/ext/json/tests/bug46944.phpt index 15ac0a6e97..812a548875 100644 --- a/ext/json/tests/bug46944.phpt +++ b/ext/json/tests/bug46944.phpt @@ -8,14 +8,14 @@ Bug #46944 (json_encode() doesn't handle 3 byte utf8 correctly) for ($i = 1; $i <= 16; $i++) { $first = 0xf0|($i >> 2); $second = 0x8f|($i & 3) << 4; - $string = sprintf("aa%c%c\xbf\xbdzz", $low, $high); + $string = sprintf("aa%c%c\xbf\xbdzz", $first, $second); echo json_encode($string) . "\n"; } echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- "aa\ud83f\udffdzz" "aa\ud87f\udffdzz" "aa\ud8bf\udffdzz" |