Home
last modified time | relevance | path

Searched refs:json_decode (Results 1 – 25 of 46) sorted by path

12

/php-src/.github/
H A Dnightly_matrix.php18 …$branch_commit_map = json_decode(file_get_contents($branch_commit_cache_file), JSON_THROW_ON_ERROR…
/php-src/benchmark/
H A Dgenerate_diff.php21 $headSummary = json_decode(file_get_contents($headSummaryFile), true);
22 $baseSummary = json_decode(file_get_contents($baseSummaryFile), true);
/php-src/build/
H A Dgen_stub.php4096 $json = json_decode($json, true);
/php-src/ext/json/
H A Djson.c260 PHP_FUNCTION(json_decode) in PHP_FUNCTION() argument
H A Djson.stub.php157 function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mi… function
H A Djson_arginfo.h33 ZEND_FUNCTION(json_decode);
40 ZEND_FE(json_decode, arginfo_json_decode)
/php-src/ext/json/tests/
H A D001.phpt2 json_decode() tests
6 var_dump(json_decode(""));
7 var_dump(json_decode("", 1));
8 var_dump(json_decode("", 0));
9 var_dump(json_decode(".", 1));
10 var_dump(json_decode(".", 0));
11 var_dump(json_decode("<?>"));
12 var_dump(json_decode(";"));
13 var_dump(json_decode("руссиш"));
14 var_dump(json_decode("blah"));
[all …]
H A D007.phpt5 var_dump(json_decode("[1]"));
7 var_dump(json_decode("[[1]]", false, 2));
9 var_dump(json_decode("[1}"));
11 var_dump(json_decode('["' . chr(0) . 'abcd"]'));
13 var_dump(json_decode("[1"));
H A D008.phpt2 json_decode() with large integers
6 $x = json_decode($json);
8 $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING);
H A Dbug41067.phpt11 $json_decoded = json_decode($json, true);
H A Dbug41403.phpt2 Bug #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.')
15 var_dump(json_decode('[2.1]'));
16 var_dump(json_decode('[0.15]'));
17 var_dump(json_decode('[123.13452345]'));
18 var_dump(json_decode('[123,13452345]'));
H A Dbug41504.phpt2 Bug #41504 (json_decode() converts empty array keys to "_empty_")
6 var_dump(json_decode('{"":"value"}', true));
7 var_dump(json_decode('{"":"value", "key":"value"}', true));
8 var_dump(json_decode('{"key":"value", "":"value"}', true));
H A Dbug41567.phpt9 var_dump(json_decode($a));
H A Dbug42090.phpt2 Bug #42090 (json_decode causes segmentation fault)
6 json_decode('""'),
7 json_decode('"..".'),
8 json_decode('"'),
9 json_decode('""""'),
11 json_decode(json_encode('"')),
12 json_decode(json_encode('""'))
H A Dbug45791.phpt2 Bug #45791 (json_decode() does not handle number 0e0)
6 var_dump(json_decode('{"zero": 0e0}'));
H A Dbug47644.phpt11 var_dump(json_decode("[$i]"));
H A Dbug50224.phpt17 var_dump(json_decode(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION)));
18 var_dump(json_decode(json_encode(12, JSON_PRESERVE_ZERO_FRACTION)));
19 var_dump(json_decode(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION)));
20 var_dump(json_decode(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION)));
21 var_dump(json_decode(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION)));
22 var_dump(json_decode(json_encode((object)array('float' => 12.0, 'integer' => 12), JSON_PRESERVE_ZER…
23 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)
5 json_decode('{"test":"test"}');
8 json_decode("");
11 json_decode("invalid json");
14 json_decode("\"\001 invalid json\"");
17 json_decode("");
H A Dbug62010.phpt2 Bug #62010 (json_decode produces invalid byte-sequences)
6 var_dump(json_decode('"\ud834"'));
H A Dbug63737.phpt2 Bug #63737 (json_decode does not properly decode with options parameter)
6 $x = json_decode($json);
8 $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")
6 var_dump(json_decode($json));
H A Dbug64874_part2.phpt2 Case-sensitivity part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrect…
6 var_dump(json_decode($json));
H A Dbug68546.phpt2 Bug #68546 (json_decode() Fatal error: Cannot access property started with '\0')
6 var_dump(json_decode('{"key": {"\u0000": "aa"}}'));
8 var_dump(json_decode('[{"key1": 0, "\u0000": 1}]'));
H A Dbug68817.phpt6 var_dump(json_decode('[""]'));
H A Dbug68938.phpt2 Bug #68938 (json_decode() decodes empty string without indicating error)
5 json_decode("");

Completed in 62 milliseconds

12