Searched refs:json_decode (Results 1 – 22 of 22) sorted by relevance
/PHP-5.3/ext/json/tests/ |
H A D | 001.phpt | 2 json_decode() tests 8 var_dump(json_decode()); 9 var_dump(json_decode("")); 10 var_dump(json_decode("", 1)); 11 var_dump(json_decode("", 0)); 12 var_dump(json_decode(".", 1)); 13 var_dump(json_decode(".", 0)); 14 var_dump(json_decode("<?>")); 15 var_dump(json_decode(";")); 17 var_dump(json_decode("blah")); [all …]
|
H A D | json_decode_error.phpt | 2 Test json_decode() function : error conditions 16 echo "*** Testing json_decode() : error conditions ***\n"; 18 echo "\n-- Testing json_decode() function with no arguments --\n"; 19 var_dump( json_decode() ); 21 echo "\n-- Testing json_decode() function with more than expected no. of arguments --\n"; 23 var_dump( json_decode('"abc"', TRUE, 512, $extra_arg) ); 28 *** Testing json_decode() : error conditions *** 30 -- Testing json_decode() function with no arguments -- 32 Warning: json_decode() expects at least 1 parameter, 0 given in %s on line %d 35 -- Testing json_decode() function with more than expected no. of arguments -- [all …]
|
H A D | bug42090.phpt | 2 Bug #42090 (json_decode causes segmentation fault) 8 json_decode('""'), 9 json_decode('"..".'), 10 json_decode('"'), 11 json_decode('""""'), 13 json_decode(json_encode('"')), 14 json_decode(json_encode('""'))
|
H A D | bug54484.phpt | 2 Bug #54484 (Empty string in json_decode doesn't reset json_last_error) 7 json_decode('{"test":"test"}'); 10 json_decode(""); 14 json_decode("invalid json"); 18 json_decode("");
|
H A D | 007.phpt | 7 var_dump(json_decode("[1]")); 9 var_dump(json_decode("[[1]]", false, 2)); 11 var_dump(json_decode("[1}")); 13 var_dump(json_decode('["' . chr(0) . 'abcd"]')); 15 var_dump(json_decode("[1"));
|
H A D | bug41403.phpt | 2 Bug #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.') 18 var_dump(json_decode('[2.1]')); 19 var_dump(json_decode('[0.15]')); 20 var_dump(json_decode('[123.13452345]')); 21 var_dump(json_decode('[123,13452345]'));
|
H A D | bug41504.phpt | 2 Bug #41504 (json_decode() converts empty array keys to "_empty_") 8 var_dump(json_decode('{"":"value"}', true)); 9 var_dump(json_decode('{"":"value", "key":"value"}', true)); 10 var_dump(json_decode('{"key":"value", "":"value"}', true));
|
H A D | json_decode_basic.phpt | 2 Test json_decode() function : basic functionality 11 /* Prototype : mixed json_decode ( string $json [, bool $assoc ] ) 16 echo "*** Testing json_decode() : basic functionality ***\n"; 41 // loop through with each element of the $inputs array to test json_decode() function 45 var_dump(json_decode($input)); 46 var_dump(json_decode($input, TRUE)); 53 *** Testing json_decode() : basic functionality ***
|
H A D | bug45791.phpt | 2 Bug #45791 (json_decode() does not handle number 0e0) 8 var_dump(json_decode('{"zero": 0e0}'));
|
H A D | pass002.phpt | 13 $obj = json_decode($test); 16 $arr = json_decode($test, true); 27 $obj = json_decode($obj_enc); 30 $arr = json_decode($arr_enc, true);
|
H A D | pass003.phpt | 21 $obj = json_decode($test); 24 $arr = json_decode($test, true); 35 $obj = json_decode($obj_enc); 38 $arr = json_decode($arr_enc, true);
|
H A D | bug41567.phpt | 11 var_dump(json_decode($a));
|
H A D | bug41067.phpt | 13 $json_decoded = json_decode($json, true);
|
H A D | bug47644.phpt | 12 var_dump(json_decode("[$i]"));
|
H A D | fail001.phpt | 39 var_dump(json_decode($test)); 41 var_dump(json_decode($test, true));
|
H A D | pass001.phpt | 75 $obj = json_decode($test); 78 $arr = json_decode($test, true); 89 $obj = json_decode($obj_enc); 92 $arr = json_decode($arr_enc, true);
|
H A D | pass001.1.phpt | 86 $obj = json_decode($test); 89 $arr = json_decode($test, true); 100 $obj = json_decode($obj_enc); 103 $arr = json_decode($arr_enc, true);
|
H A D | pass001.1_64bit.phpt | 86 $obj = json_decode($test); 89 $arr = json_decode($test, true); 100 $obj = json_decode($obj_enc); 103 $arr = json_decode($arr_enc, true);
|
/PHP-5.3/ext/json/ |
H A D | README | 19 mixed json_decode ( string json, [bool assoc] ) 21 json_decode takes a JSON string and converts it into a PHP variable. 22 When assoc is given, and evaluates to TRUE, json_decode() will return 35 var_dump(json_decode($json)); 51 var_dump(json_decode($json, true));
|
H A D | json.c | 35 static PHP_FUNCTION(json_decode); 61 PHP_FE(json_decode, arginfo_json_decode) 582 static PHP_FUNCTION(json_decode) in PHP_FUNCTION() argument
|
/PHP-5.3/ |
H A D | UPGRADING | 97 json_decode(): $depth
|
H A D | NEWS | 1131 . Fixed bug #54484 (Empty string in json_decode doesn't reset 1937 - Fixed bug #52262 (json_decode() shows no errors on invalid UTF-8). 2998 - Added the ability for json_decode() to take a user specified depth. (Scott) 3024 - Added depth parameter to json_decode() to lower the nesting depth from the 3203 - Fixed bug #45989 (json_decode() doesn't return NULL on certain invalid 3212 - Fixed bug #45791 (json_decode() doesn't convert 0e0 to a double). (Scott) 3460 - Fixed a segfault when malformed string is passed to json_decode(). (Scott) 4232 - Fixed bug #42090 (json_decode causes segmentation fault). (Hannes) 4411 - Fixed bug #41504 (json_decode() incorrectly decodes JSON arrays with empty 4424 - Fixed bug #41403 (json_decode cannot decode floats if localeconv [all …]
|
Completed in 47 milliseconds