Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -1541,7 +1541,7 @@ |
1542 | 1542 | print "CodeReview info upload failed to reach server.\n"; |
1543 | 1543 | exit( 1 ); |
1544 | 1544 | } |
1545 | | - $responseData = json_decode( $response, true ); |
| 1545 | + $responseData = FormatJson::decode( $response, true ); |
1546 | 1546 | if( !is_array( $responseData ) ) { |
1547 | 1547 | print "CodeReview API response not recognized...\n"; |
1548 | 1548 | wfDebug( "Unrecognized CodeReview API response: $response\n" ); |
Index: trunk/phase3/includes/json/FormatJson.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | die( 1 ); |
8 | 8 | } |
9 | 9 | |
10 | | -class FormatJson{ |
| 10 | +class FormatJson { |
11 | 11 | public static function encode($value, $isHtml=false){ |
12 | 12 | // Some versions of PHP have a broken json_encode, see PHP bug |
13 | 13 | // 46944. Test encoding an affected character (U+20000) to |