Permalink
Browse files

Fix 64bit JSON test

  • Loading branch information...
1 parent 80d5ae3 commit f3192ea6e4405dded21cc81a6587374b019a6173 Nikita Popov committed Aug 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/json/tests/pass001.1_64bit.phpt
@@ -90,10 +90,10 @@ $arr = json_decode($test, true);
var_dump($arr);
echo "ENCODE: FROM OBJECT\n";
-$obj_enc = json_encode($obj);
+$obj_enc = json_encode($obj, JSON_PARTIAL_OUTPUT_ON_ERROR);
echo $obj_enc . "\n";
echo "ENCODE: FROM ARRAY\n";
-$arr_enc = json_encode($arr);
+$arr_enc = json_encode($arr, JSON_PARTIAL_OUTPUT_ON_ERROR);
echo $arr_enc . "\n";
echo "DECODE AGAIN: AS OBJECT\n";

2 comments on commit f3192ea

Contributor

reeze replied Aug 14, 2012

@nikic You fixed this bug https://bugs.php.net/bug.php?id=62600
Then that could be closed :)

Owner

nikic replied Aug 14, 2012

Thanks, it's closed now.

Please sign in to comment.