Home
last modified time | relevance | path

Searched refs:json_decode (Results 1 – 25 of 39) sorted by last modified time

12

/PHP-7.4/ext/pcre/tests/
H A Dbug79241.phpt8 // if "’" string is used directly without json_decode,
10 $text = json_decode('"’"');
/PHP-7.4/ext/json/
H A Djson.c36 static PHP_FUNCTION(json_decode);
69 PHP_FE(json_decode, arginfo_json_decode)
311 static PHP_FUNCTION(json_decode) in PHP_FUNCTION() argument
/PHP-7.4/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 Dbug68817.phpt8 var_dump(json_decode('[""]'));
H A Djson_decode_basic.phpt2 Test json_decode() function : basic functionality
7 echo "*** Testing json_decode() : basic functionality ***\n";
32 // loop through with each element of the $inputs array to test json_decode() function
36 var_dump(json_decode($input));
37 var_dump(json_decode($input, true));
44 *** Testing json_decode() : basic functionality ***
H A Djson_decode_error.phpt2 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());
14 var_dump(json_decode('"abc"', true, 512, 0, $extra_arg));
16 echo "\n-- Testing json_decode() function with depth below 0 --\n";
17 var_dump(json_decode('"abc"', true, -1));
22 *** Testing json_decode() : error conditions ***
24 -- Testing json_decode() function with no arguments --
34 -- Testing json_decode() function with depth below 0 --
[all …]
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 D008.phpt2 json_decode() with large integers
8 $x = json_decode($json);
10 $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING);
H A Dbug41067.phpt13 $json_decoded = json_decode($json, true);
H A Dbug41403.phpt2 Bug #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.')
16 var_dump(json_decode('[2.1]'));
17 var_dump(json_decode('[0.15]'));
18 var_dump(json_decode('[123.13452345]'));
19 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 Dbug41567.phpt11 var_dump(json_decode($a));
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 Dbug45791.phpt2 Bug #45791 (json_decode() does not handle number 0e0)
8 var_dump(json_decode('{"zero": 0e0}'));
H A Dbug47644.phpt12 var_dump(json_decode("[$i]"));
H A Dbug50224.phpt19 var_dump(json_decode(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION)));
20 var_dump(json_decode(json_encode(12, JSON_PRESERVE_ZERO_FRACTION)));
21 var_dump(json_decode(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION)));
22 var_dump(json_decode(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION)));
23 var_dump(json_decode(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION)));
24 var_dump(json_decode(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZER…
25 var_dump(json_decode(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZER…
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("");
13 json_decode("invalid json");
16 json_decode("\"\001 invalid json\"");
19 json_decode("");
H A Dbug62010.phpt2 Bug #62010 (json_decode produces invalid byte-sequences)
8 var_dump(json_decode('"\ud834"'));
H A Dbug63737.phpt2 Bug #63737 (json_decode does not properly decode with options parameter)
8 $x = json_decode($json);
10 $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING);
H A Dbug64874_part1.phpt2 Whitespace part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly")
8 var_dump(json_decode($json));
H A Dbug64874_part2.phpt2 Case-sensitivity part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrect…
8 var_dump(json_decode($json));
H A Dbug68546.phpt2 Bug #68546 (json_decode() Fatal error: Cannot access property started with '\0')
11 var_dump(json_decode('{"key": {"\u0000": "aa"}}'));
13 var_dump(json_decode('[{"key1": 0, "\u0000": 1}]'));
H A Dbug68938.phpt2 Bug #68938 (json_decode() decodes empty string without indicating error)
7 json_decode("");
H A Dbug69187.phpt7 var_dump(json_decode(NULL));
9 var_dump(json_decode(FALSE));
11 var_dump(json_decode(""));
14 var_dump(json_decode(0));
16 var_dump(json_decode(1));
18 var_dump(json_decode(TRUE));
21 json_decode("\xED\xA0\xB4");
24 json_decode("\x00");
27 json_decode("\"\xED\xA0\xB4\"");
30 json_decode("\"\x00\"");
/PHP-7.4/ext/pdo_pgsql/tests/
H A Dbug66584.phpt33 …run($pdo, json_decode('{"0":234,"1":165,"2":221,"3":207,"4":188,"5":216,"6":1150,"7":916,"8":967,"…

Completed in 39 milliseconds

12