From: Scott MacVicar Date: Thu, 8 Jan 2009 13:35:58 +0000 (+0000) Subject: Fix broken test X-Git-Tag: php-5.3.0beta1~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b08ceb79b31102b6372e27bc984e11fe2db9206b;p=php Fix broken test --- diff --git a/ext/json/tests/bug46944.phpt b/ext/json/tests/bug46944.phpt index 735de04435..15ac0a6e97 100644 --- a/ext/json/tests/bug46944.phpt +++ b/ext/json/tests/bug46944.phpt @@ -6,7 +6,10 @@ Bug #46944 (json_encode() doesn't handle 3 byte utf8 correctly) > 2)) . (0x8f|($i & 3) << 4) . "\xbf\xbdzz") . "\n"; + $first = 0xf0|($i >> 2); + $second = 0x8f|($i & 3) << 4; + $string = sprintf("aa%c%c\xbf\xbdzz", $low, $high); + echo json_encode($string) . "\n"; }