Searched refs:json_encode (Results 26 – 50 of 97) sorted by relevance
1234
/php-src/ext/json/tests/ |
H A D | json_encode_exceptions.phpt | 2 Test json_encode() function : JSON_THROW_ON_ERROR flag 7 var_dump(json_encode("\x80", JSON_THROW_ON_ERROR)); 15 var_dump(json_encode("\x80", JSON_THROW_ON_ERROR | JSON_PARTIAL_OUTPUT_ON_ERROR)); 41 string(11) "json_encode"
|
H A D | json_encode_recursion_03.phpt | 2 json_encode() Recursion test with JsonSerializable and __debugInfo 12 return [ 'result' => json_encode($this) ]; 22 var_dump(json_encode(new SerializingTest()));
|
H A D | 004.phpt | 2 json_encode() & endless loop - 2 13 var_dump(json_encode($a)); 18 var_dump(json_encode($a, JSON_PARTIAL_OUTPUT_ON_ERROR));
|
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 | json_encode_recursion_06.phpt | 2 json_encode() Recursion test with JsonSerializable and serialize 27 return [ 'result' => json_encode($this) ]; 36 var_dump(json_encode(new JsonEncodeFirstTest()));
|
H A D | json_encode_unescaped_slashes.phpt | 5 var_dump(json_encode('a/b')); 6 var_dump(json_encode('a/b', JSON_UNESCAPED_SLASHES));
|
H A D | 005.phpt | 2 json_encode() & endless loop - 3 10 var_dump(json_encode($a));
|
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 | bug41034.phpt | 2 Bug #41034 (json_encode() ignores null byte started keys in arrays) 5 echo json_encode(array(0, "\0ab"=>1, "\0null-prefixed value"));
|
H A D | json_encode_basic.phpt | 2 Test json_encode() function : basic functionality 5 echo "*** Testing json_encode() : basic functionality ***\n"; 75 // loop through with each element of the $inputs array to test json_encode() function 79 var_dump(json_encode($input)); 85 *** Testing json_encode() : basic functionality ***
|
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 | 009.phpt | 2 json_encode() with non-packed array that should be encoded as an array rather than object 8 var_dump(json_encode($a));
|
H A D | json_encode_recursion_02.phpt | 2 json_encode() Recursion test with JsonSerializable and var_dump simple 17 var_dump(json_encode(new SerializingTest()));
|
H A D | json_encode_pretty_print.phpt | 2 json_encode() with JSON_PRETTY_PRINT 7 $pretty = json_encode($struct, JSON_PRETTY_PRINT);
|
H A D | serialize.phpt | 2 json_encode() Serialization tests 58 echo json_encode(new $class($adata)), "\n"; 59 echo json_encode(new $class($ndata)), "\n"; 60 echo json_encode(new $class($odata)), "\n";
|
H A D | bug41067.phpt | 2 Bug #41067 (json_encode() problem with UTF-16 input) 9 $json = json_encode($array);
|
H A D | json_encode_recursion_05.phpt | 2 json_encode() Recursion test with JsonSerializable, __debugInfo and print_r 22 var_dump(json_encode(new SerializingTest()));
|
H A D | unsupported_type_error.phpt | 10 var_dump(json_encode($resource)); 13 var_dump(json_encode($resource, 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);
|
/php-src/.github/ |
H A D | nightly_matrix.php | 33 file_put_contents($branch_commit_cache_file, json_encode($branch_commit_map)); 150 fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n"); 151 fwrite($f, 'matrix-include=' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n"); 152 fwrite($f, 'windows-matrix-include=' . json_encode($windows_matrix_include, JSON_UNESCAPED_SLASHES)… 153 fwrite($f, 'macos-matrix-include=' . json_encode($macos_matrix_include, JSON_UNESCAPED_SLASHES) . "…
|
/php-src/ext/opcache/tests/jit/ |
H A D | gh11917.phpt | 9 echo crc32(json_encode(bitwise_small_split($a))) . "\n"; 10 echo crc32(json_encode(bitwise_small_split($a))) . "\n"; 11 echo crc32(json_encode(bitwise_small_split($a))) . "\n"; 12 echo crc32(json_encode(bitwise_small_split($a))) . "\n";
|
/php-src/ext/spl/tests/ |
H A D | gh10519.phpt | 51 var_dump(json_encode($example)); 52 var_dump(json_encode($a)); 62 var_dump(json_encode($example)); 63 var_dump(json_encode($b));
|
/php-src/Zend/tests/function_arguments/ |
H A D | sensitive_parameter_value.phpt | 18 echo "# (array) / json_encode()", PHP_EOL; 20 var_dump(json_encode($v)); 41 # (array) / json_encode()
|
/php-src/ext/mysqli/tests/ |
H A D | bug70384.phpt | 51 if (json_encode($rows[0][0]) != json_encode($jsfield_data)) { 53 var_dump(json_encode($rows[0][0]) != json_encode($jsfield_data));
|
/php-src/Zend/tests/enum/ |
H A D | json_encode.phpt | 2 Enum in json_encode 27 var_dump(json_encode($value)); 35 var_dump(json_encode($value, JSON_THROW_ON_ERROR));
|
Completed in 33 milliseconds
1234