Lines Matching refs:json_decode
2 Test json_decode() function : error conditions
7 echo "*** Testing json_decode() : error conditions ***\n";
9 echo "\n-- Testing json_decode() function with no arguments --\n";
10 var_dump(json_decode());
12 echo "\n-- Testing json_decode() function with more than expected no. of arguments --\n";
14 var_dump(json_decode('"abc"', true, 512, 0, $extra_arg));
19 *** Testing json_decode() : error conditions ***
21 -- Testing json_decode() function with no arguments --
23 Warning: json_decode() expects at least 1 parameter, 0 given in %s on line %d
26 -- Testing json_decode() function with more than expected no. of arguments --
28 Warning: json_decode() expects at most 4 parameters, 5 given in %s on line %d