From: Scott MacVicar Date: Thu, 8 Jan 2009 14:09:49 +0000 (+0000) Subject: Fix test again... X-Git-Tag: php-5.3.0beta1~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fe58b3542df59666b7cc118daa558df518dcdf4;p=php Fix test again... --- 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"