Fix memoization of functions called with keyset arguments
[hiphop-php.git] / hphp / test / quick / json_last_error_scalar.php
blob4974cae18c8e9cd5c8efa26b77cee57f2a4fe8fc
1 <?php
2 $data = [
3 'null',
4 'false',
5 'true',
6 '"abc"',
7 '"ab\"c"',
8 '0',
9 '0.45',
10 '-0.5',
11 'invalid',
14 foreach($data as $str) {
15 echo "JSON: $str\n";
16 var_dump(json_decode($str));
17 echo "Error: ", json_last_error(), "\n";