summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/json/tests/bug46944.phpt4
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"