From 6fe58b3542df59666b7cc118daa558df518dcdf4 Mon Sep 17 00:00:00 2001 From: Scott MacVicar Date: Thu, 8 Jan 2009 14:09:49 +0000 Subject: [PATCH] Fix test again... --- ext/json/tests/bug46944.phpt | 4 ++-- 1 file 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" -- 2.50.1