/php-src/.github/ |
H A D | nightly_matrix.php | 18 …$branch_commit_map = json_decode(file_get_contents($branch_commit_cache_file), JSON_THROW_ON_ERROR…
|
/php-src/build/ |
H A D | gen_stub.php | 4096 $json = json_decode($json, true);
|
/php-src/ext/json/ |
H A D | json_arginfo.h | 33 ZEND_FUNCTION(json_decode); 40 ZEND_FE(json_decode, arginfo_json_decode)
|
H A D | json.c | 260 PHP_FUNCTION(json_decode) in PHP_FUNCTION() argument
|
H A D | json.stub.php | 157 function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mi… function
|
/php-src/sapi/fpm/tests/ |
H A D | response.inc | 163 $data = json_decode($rawData, true);
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | bug66584.phpt | 34 …run($pdo, json_decode('{"0":234,"1":165,"2":221,"3":207,"4":188,"5":216,"6":1150,"7":916,"8":967,"…
|
/php-src/benchmark/ |
H A D | generate_diff.php | 21 $headSummary = json_decode(file_get_contents($headSummaryFile), true); 22 $baseSummary = json_decode(file_get_contents($baseSummaryFile), true);
|
/php-src/ext/json/tests/ |
H A D | json_validate_005.phpt | 2 json_validate() - compare against json_decode() for different types of inputs 22 var_dump($input, json_decode($input), json_validate($input));
|
H A D | 001.phpt | 2 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 D | 007.phpt | 5 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 D | 008.phpt | 2 json_decode() with large integers 6 $x = json_decode($json); 8 $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING);
|
H A D | bug41067.phpt | 11 $json_decoded = json_decode($json, true);
|
H A D | bug41403.phpt | 2 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 D | bug41504.phpt | 2 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 D | bug41567.phpt | 9 var_dump(json_decode($a));
|
H A D | bug42090.phpt | 2 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 D | bug47644.phpt | 11 var_dump(json_decode("[$i]"));
|
H A D | bug50224.phpt | 17 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 D | bug54484.phpt | 2 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 D | bug68546.phpt | 2 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 D | bug72069.phpt | 6 $result = json_encode(['end' => json_decode('', true)]); 13 return ['end' => json_decode('', true)];
|
H A D | fail001.phpt | 36 var_dump(json_decode($test)); 38 var_dump(json_decode($test, true));
|
H A D | json_decode_basic.phpt | 2 Test json_decode() function : basic functionality 5 echo "*** Testing json_decode() : basic functionality ***\n"; 30 // loop through with each element of the $inputs array to test json_decode() function 34 var_dump(json_decode($input)); 35 var_dump(json_decode($input, true)); 41 *** Testing json_decode() : basic functionality ***
|
/php-src/ext/pcre/tests/ |
H A D | bug79241.phpt | 6 // if "’" string is used directly without json_decode, 8 $text = json_decode('"’"');
|