Home
last modified time | relevance | path

Searched refs:json_encode (Results 1 – 25 of 97) sorted by path

1234

/php-src/.github/
H A Dnightly_matrix.php33 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/
H A DUPGRADING653 of functions as well as serialization functions such as `json_encode()`,
/php-src/Zend/tests/enum/
H A Djson_encode.phpt2 Enum in json_encode
27 var_dump(json_encode($value));
35 var_dump(json_encode($value, JSON_THROW_ON_ERROR));
/php-src/Zend/tests/function_arguments/
H A Dsensitive_parameter_value.phpt18 echo "# (array) / json_encode()", PHP_EOL;
20 var_dump(json_encode($v));
41 # (array) / json_encode()
/php-src/Zend/tests/
H A Dstring_to_number_comparison.phpt14 return json_encode($val);
/php-src/Zend/tests/type_declarations/union_types/
H A Dtype_checking_strict.phpt15 return json_encode($value, JSON_PRESERVE_ZERO_FRACTION);
H A Dtype_checking_weak.phpt13 return json_encode($value, JSON_PRESERVE_ZERO_FRACTION);
/php-src/benchmark/
H A Dbenchmark.php30 $result = json_encode($data, JSON_PRETTY_PRINT) . "\n";
/php-src/build/
H A Dgen_stub.php5982 echo json_encode($parameterStats, JSON_PRETTY_PRINT), "\n";
/php-src/ext/dom/tests/
H A DDOMDocument_json_encode.phpt8 echo json_encode($doc);
/php-src/ext/dom/tests/modern/spec/
H A DNamedNodeMap_dimensions.phpt14 echo "--- ", json_encode($value), " ---\n";
H A DNodeList_dimensions.phpt14 echo "--- ", json_encode($value), " ---\n";
/php-src/ext/ftp/tests/
H A Dftp_fget_basic.phpt27 echo json_encode(fgets($fp)), "\n";
H A Dftp_get_basic.phpt26 echo json_encode(file_get_contents($tmpfname)), "\n";
/php-src/ext/json/
H A Djson.c222 PHP_FUNCTION(json_encode) in PHP_FUNCTION() argument
H A Djson.stub.php155 function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {} function
H A Djson_arginfo.h32 ZEND_FUNCTION(json_encode);
39 ZEND_FE(json_encode, arginfo_json_encode)
/php-src/ext/json/tests/
H A D002.phpt2 json_encode() tests
6 var_dump(json_encode(""));
7 var_dump(json_encode(NULL));
8 var_dump(json_encode(TRUE));
10 var_dump(json_encode(array(""=>"")));
11 var_dump(json_encode(array(array(1))));
12 var_dump(json_encode(array()));
14 var_dump(json_encode(array(""=>""), JSON_FORCE_OBJECT));
16 var_dump(json_encode(array(), JSON_FORCE_OBJECT));
18 var_dump(json_encode(1));
[all …]
H A D003.phpt2 json_encode() & endless loop - 1
13 var_dump(json_encode($a));
18 var_dump(json_encode($a, JSON_PARTIAL_OUTPUT_ON_ERROR));
H A D004.phpt2 json_encode() & endless loop - 2
13 var_dump(json_encode($a));
18 var_dump(json_encode($a, JSON_PARTIAL_OUTPUT_ON_ERROR));
H A D005.phpt2 json_encode() & endless loop - 3
10 var_dump(json_encode($a));
H A D006.phpt2 json_encode() & extended encoding
7 echo "Normal: ", json_encode($a), "\n";
8 echo "Tags: ", json_encode($a, JSON_HEX_TAG), "\n";
9 echo "Apos: ", json_encode($a, JSON_HEX_APOS), "\n";
10 echo "Quot: ", json_encode($a, JSON_HEX_QUOT), "\n";
11 echo "Amp: ", json_encode($a, JSON_HEX_AMP), "\n";
12 echo "All: ", json_encode($a, JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP), "\n";
H A D009.phpt2 json_encode() with non-packed array that should be encoded as an array rather than object
8 var_dump(json_encode($a));
H A Dbug40503.phpt2 Bug #40503 (json_encode() value corruption on 32bit systems with overflown values)
12 json_test_show_eq("$value", json_encode($value));
14 json_test_show_eq("$value", json_encode($value));
H A Dbug41034.phpt2 Bug #41034 (json_encode() ignores null byte started keys in arrays)
5 echo json_encode(array(0, "\0ab"=>1, "\0null-prefixed value"));

Completed in 143 milliseconds

1234