scottmac                Thu Jan  8 13:35:58 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/json/tests     bug46944.phpt 
  Log:
  Fix broken test
  
http://cvs.php.net/viewvc.cgi/php-src/ext/json/tests/bug46944.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/json/tests/bug46944.phpt
diff -u php-src/ext/json/tests/bug46944.phpt:1.1.2.1 
php-src/ext/json/tests/bug46944.phpt:1.1.2.2
--- php-src/ext/json/tests/bug46944.phpt:1.1.2.1        Fri Jan  2 03:02:22 2009
+++ php-src/ext/json/tests/bug46944.phpt        Thu Jan  8 13:35:58 2009
@@ -6,7 +6,10 @@
 <?php
 
 for ($i = 1; $i <= 16; $i++) {
-       echo json_encode(b"aa" . (0xf0|($i >> 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";
 }
 
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to