/PHP-7.2/ |
H A D | NEWS | 1502 json_encode and json_decode to ignore or replace invalid UTF-8 byte 1504 . Fixed bug #75185 (Buffer overflow in json_decode() with
|
H A D | UPGRADING | 56 . The json_decode() option JSON_OBJECT_AS_ARRAY is used if the second 136 json_encode() and json_decode() to ignore and replace invalid UTF-8 byte
|
/PHP-7.2/ext/pdo_pgsql/tests/ |
H A D | bug66584.phpt | 33 …run($pdo, json_decode('{"0":234,"1":165,"2":221,"3":207,"4":188,"5":216,"6":1150,"7":916,"8":967,"…
|
/PHP-7.2/ext/json/tests/ |
H A D | bug62010.phpt | 2 Bug #62010 (json_decode produces invalid byte-sequences) 8 var_dump(json_decode('"\ud834"'));
|
H A D | bug73991.phpt | 8 var_dump(json_decode($json, false)); 9 var_dump(json_decode($json, true)); 10 var_dump(json_decode($json, null, 512, 0)); 11 var_dump(json_decode($json, null, 512, JSON_OBJECT_AS_ARRAY));
|
H A D | json_decode_error.phpt | 2 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()); 12 echo "\n-- Testing json_decode() function with more than expected no. of arguments --\n"; 14 var_dump(json_decode('"abc"', true, 512, 0, $extra_arg)); 19 *** Testing json_decode() : error conditions *** 21 -- Testing json_decode() function with no arguments -- 23 Warning: json_decode() expects at least 1 parameter, 0 given in %s on line %d 26 -- Testing json_decode() function with more than expected no. of arguments -- [all …]
|
H A D | pass001.1.phpt | 84 $obj = json_decode($test); 87 $arr = json_decode($test, true); 98 $obj = json_decode($obj_enc); 101 $arr = json_decode($arr_enc, true);
|
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 | bug41403.phpt | 2 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 D | bug68546.phpt | 2 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 D | bug68817.phpt | 8 var_dump(json_decode('[""]'));
|
H A D | json_decode_basic.phpt | 2 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 D | json_encode_unescaped_slashes.phpt | 2 json_decode() tests
|
H A D | pass001.1_64bit.phpt | 84 $obj = json_decode($test); 87 $arr = json_decode($test, true); 98 $obj = json_decode($obj_enc); 101 $arr = json_decode($arr_enc, true);
|
H A D | json_encode_pretty_print.phpt | 8 $struct = json_decode($json); 11 $pretty = json_decode($pretty);
|
H A D | pass001.phpt | 73 $obj = json_decode($test); 76 $arr = json_decode($test, true); 87 $obj = json_decode($obj_enc); 90 $arr = json_decode($arr_enc, true);
|
H A D | pass002.phpt | 11 $obj = json_decode($test); 14 $arr = json_decode($test, true); 25 $obj = json_decode($obj_enc); 28 $arr = json_decode($arr_enc, true);
|
H A D | pass003.phpt | 19 $obj = json_decode($test); 22 $arr = json_decode($test, true); 33 $obj = json_decode($obj_enc); 36 $arr = json_decode($arr_enc, true);
|
H A D | bug41067.phpt | 13 $json_decoded = json_decode($json, true);
|
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 | bug41567.phpt | 11 var_dump(json_decode($a));
|
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 | bug47644.phpt | 12 var_dump(json_decode("[$i]"));
|
H A D | bug50224.phpt | 19 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…
|
/PHP-7.2/ext/json/ |
H A D | json.c | 36 static PHP_FUNCTION(json_decode); 68 PHP_FE(json_decode, arginfo_json_decode) 263 static PHP_FUNCTION(json_decode) in PHP_FUNCTION() argument
|