]> granicus.if.org Git - php/commitdiff
Fix test again...
authorScott MacVicar <scottmac@php.net>
Thu, 8 Jan 2009 14:09:49 +0000 (14:09 +0000)
committerScott MacVicar <scottmac@php.net>
Thu, 8 Jan 2009 14:09:49 +0000 (14:09 +0000)
ext/json/tests/bug46944.phpt

index 15ac0a6e97da227b7ceece0bec8009b312113bec..812a548875766aca576aef99b5ba014a98610309 100644 (file)
@@ -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"