Searched refs:json_encode (Results 26 – 50 of 97) sorted by path
1234
/php-src/ext/json/tests/ |
H A D | bug41067.phpt | 2 Bug #41067 (json_encode() problem with UTF-16 input) 9 $json = json_encode($array);
|
H A D | bug41567.phpt | 2 Bug #41567 (json_encode() double conversion is inconsistent with PHP) 8 $a = json_encode(123456789.12345);
|
H A D | bug42090.phpt | 10 json_encode('"'), 11 json_decode(json_encode('"')), 12 json_decode(json_encode('""'))
|
H A D | bug42785.phpt | 16 var_dump(json_encode($foo)); 21 var_dump(json_encode($bar1));
|
H A D | bug43941.phpt | 2 Bug #43941 (json_encode() invalid UTF-8) 6 var_dump(json_encode("abc")); 7 var_dump(json_encode("ab\xE0")); 8 var_dump(json_encode("ab\xE0", JSON_PARTIAL_OUTPUT_ON_ERROR)); 9 var_dump(json_encode(array("ab\xE0", "ab\xE0c", "abc"), JSON_PARTIAL_OUTPUT_ON_ERROR));
|
H A D | bug46215.phpt | 2 Bug #46215 (json_encode mutates its parameter and has some class-specific state) 11 $x = json_encode($a);
|
H A D | bug46944.phpt | 2 Bug #46944 (json_encode() doesn't handle 3 byte utf8 correctly) 10 echo json_encode($string) . "\n";
|
H A D | bug50224.phpt | 2 bug #50224 (json_encode() does not always encode a float as a float) 8 var_dump(json_encode(12.3, JSON_PRESERVE_ZERO_FRACTION)); 9 var_dump(json_encode(12, JSON_PRESERVE_ZERO_FRACTION)); 10 var_dump(json_encode(12.0, JSON_PRESERVE_ZERO_FRACTION)); 11 var_dump(json_encode(0.0, JSON_PRESERVE_ZERO_FRACTION)); 12 var_dump(json_encode(array(12, 12.0, 12.3), JSON_PRESERVE_ZERO_FRACTION)); 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))); [all …]
|
H A D | bug53946.phpt | 2 bug #53946 (json_encode() with JSON_UNESCAPED_UNICODE) 5 var_dump(json_encode("latin 1234 -/ russian мама мыла раму specialchars \x02 \x08 \n U+1D11… 6 var_dump(json_encode("latin 1234 -/ russian мама мыла раму specialchars \x02 \x08 \n U+1D11… 7 var_dump(json_encode("ab\xE0")); 8 var_dump(json_encode("ab\xE0", JSON_UNESCAPED_UNICODE));
|
H A D | bug54058.phpt | 8 json_encode($bad_utf8); 13 json_encode($a); 19 json_encode($b); 26 json_encode($c);
|
H A D | bug55543.phpt | 2 Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties) 8 var_dump(json_encode($a, JSON_NUMERIC_CHECK));
|
H A D | bug61537.phpt | 2 Bug #61537 (json_encode() incorrectly truncates/discards information) 7 var_dump(json_encode($invalid_utf8)); 10 var_dump(json_encode($invalid_utf8, JSON_PARTIAL_OUTPUT_ON_ERROR)); 17 var_dump(json_encode($invalid_utf8)); 20 var_dump(json_encode($invalid_utf8, JSON_PARTIAL_OUTPUT_ON_ERROR));
|
H A D | bug61978.phpt | 30 var_dump(json_encode($obj1, JSON_PARTIAL_OUTPUT_ON_ERROR)); 35 var_dump(json_encode($obj2, JSON_PARTIAL_OUTPUT_ON_ERROR));
|
H A D | bug62369.phpt | 2 FR #62369 (Segfault on json_encode(deeply_nested_array) 11 json_encode($array, 0, 551); 21 json_encode($array, 0, 540);
|
H A D | bug64695.phpt | 6 var_dump(json_encode($t, JSON_NUMERIC_CHECK));
|
H A D | bug66021.phpt | 10 echo json_encode(array(array(), (object) array(), new Foo), JSON_PRETTY_PRINT);
|
H A D | bug66025.phpt | 2 Bug #66025 (Indent wrong when json_encode() called from jsonSerialize function) 8 return json_encode([1], JSON_PRETTY_PRINT); 12 echo json_encode([new Foo]), "\n";
|
H A D | bug68567.phpt | 6 var_dump(json_encode(array("\x80" => 1), JSON_PARTIAL_OUTPUT_ON_ERROR));
|
H A D | bug68992.phpt | 2 Bug #68992 (json_encode stacks exceptions thrown by JsonSerializable classes) 17 json_encode($classes);
|
H A D | bug71835.phpt | 2 Bug #71835 (json_encode sometimes incorrectly detects recursion with JsonSerializable) 12 var_dump(json_encode($arr)); 21 var_dump(json_encode($arr));
|
H A D | bug72069.phpt | 2 Bug #72069 (Behavior \JsonSerializable different from json_encode) 6 $result = json_encode(['end' => json_decode('', true)]); 18 $result = json_encode($a); 21 $result = json_encode($toJsonData);
|
H A D | bug73113.phpt | 17 echo json_encode($obj);
|
H A D | bug73254.phpt | 2 Bug #73254 (Incorrect indentation generated by json_encode() with JSON_PRETTY_PRINT) 6 echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n"; 10 echo json_encode($data), "\n"; 11 echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n";
|
H A D | bug77843.phpt | 17 var_dump(json_encode([&$arr]));
|
H A D | bug81532.phpt | 2 Bug #81532: Change of $depth behaviour in json_encode() on PHP 8.1 17 var_export(json_encode($a, 0, 0)); echo "\n"; 18 var_export(json_encode($a, 0, 1)); echo "\n"; 19 var_export(json_encode($b, 0, 1)); echo "\n"; 20 var_export(json_encode($b, 0, 2)); echo "\n"; 21 var_export(json_encode($c, 0, 2)); echo "\n"; 22 var_export(json_encode($c, 0, 3)); echo "\n";
|
Completed in 29 milliseconds
1234