Home
last modified time | relevance | path

Searched refs:json_decode (Results 1 – 22 of 22) sorted by relevance

/PHP-5.3/ext/json/tests/
H A D001.phpt2 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 Djson_decode_error.phpt2 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 Dbug42090.phpt2 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 Dbug54484.phpt2 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 D007.phpt7 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 Dbug41403.phpt2 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 Dbug41504.phpt2 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 Djson_decode_basic.phpt2 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 Dbug45791.phpt2 Bug #45791 (json_decode() does not handle number 0e0)
8 var_dump(json_decode('{"zero": 0e0}'));
H A Dpass002.phpt13 $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 Dpass003.phpt21 $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 Dbug41567.phpt11 var_dump(json_decode($a));
H A Dbug41067.phpt13 $json_decoded = json_decode($json, true);
H A Dbug47644.phpt12 var_dump(json_decode("[$i]"));
H A Dfail001.phpt39 var_dump(json_decode($test));
41 var_dump(json_decode($test, true));
H A Dpass001.phpt75 $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 Dpass001.1.phpt86 $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 Dpass001.1_64bit.phpt86 $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 DREADME19 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 Djson.c35 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 DUPGRADING97 json_decode(): $depth
H A DNEWS1131 . 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 49 milliseconds