Home
last modified time | relevance | path

Searched refs:json_encode (Results 26 – 50 of 97) sorted by last modified time

1234

/php-src/ext/mysqli/tests/
H A Dbug70384.phpt51 if (json_encode($rows[0][0]) != json_encode($jsfield_data)) {
53 var_dump(json_encode($rows[0][0]) != json_encode($jsfield_data));
/php-src/ext/spl/tests/
H A DSplFixedArray_get_properties_for.phpt25 echo json_encode($array), "\n"; // From JsonSerializable::serialize()
H A Dgh10519.phpt51 var_dump(json_encode($example));
52 var_dump(json_encode($a));
62 var_dump(json_encode($example));
63 var_dump(json_encode($b));
H A Dsplfixedarray_json_encode.phpt2 json_encode() on SplFixedArray
6 echo json_encode(new SplFixedArray()) . "\n";
7 echo json_encode(new SplFixedArray(1)) . "\n";
12 echo json_encode($a) . "\n";
/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/ext/json/
H A Djson.stub.php155 function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {} function
/php-src/ext/standard/tests/url/
H A Dbase64_decode_basic_003.phpt29 …printf("base64 %-16s non-strict %-8s strict %s\n", json_encode($a), json_encode($b), json_encode($…
/php-src/ext/standard/tests/strings/
H A Dsprintf_variation54.phpt11 echo "$format with " . (is_resource($value) ? "resource" : json_encode($value)) . ":\n";
H A Dlocale_independent_float_to_string.phpt35 echo json_encode($f) . "\n";
/php-src/ext/standard/tests/general_functions/
H A Dis_callable_variation1.phpt12 echo json_encode($callable_name) . "\n";
15 echo json_encode($callable_name) . "\n";
/php-src/ext/standard/tests/class_object/
H A Dget_object_vars_variation_004.phpt22 // Use json_encode to get a dump with apply_count > 0
23 json_encode($obj);
/php-src/ext/simplexml/tests/
H A Dbug66084_1.phpt7 echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')->c), "\n";
8 echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')), "\n";
9 echo json_encode(simplexml_load_string('<a><b/><d/><c><x/></c></a>')), "\n";
10 echo json_encode(simplexml_load_string('<a><b/><c><d/><x/></c></a>')), "\n";
11 echo json_encode(simplexml_load_string('<a><b/><c><d><x/></d></c></a>')), "\n";
/php-src/ext/reflection/tests/types/
H A Ddnf_types.phpt13 echo $str_indent . " Allows Null: " . json_encode($type->allowsNull()) . "\n";
H A Ddnf_types_with_null.phpt9 echo $str_indent . "Allows Null: " . json_encode($rt->allowsNull()) . "\n";
H A Dintersection_types.phpt8 echo "Allows null: " . json_encode($rt->allowsNull()) . "\n";
12 echo " Allows Null: " . json_encode($type->allowsNull()) . "\n";
/php-src/ext/pdo_pgsql/tests/
H A Dbug71885_2.phpt26 $jsonb = $db->quote(json_encode(['a' => 1]));
/php-src/ext/opcache/tests/
H A Djmp_elim_001.phpt15 echo json_encode($info) . "\n";
/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 D005.phpt2 json_encode() & endless loop - 3
10 var_dump(json_encode($a));
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"));
H A Dbug41067.phpt2 Bug #41067 (json_encode() problem with UTF-16 input)
9 $json = json_encode($array);
H A Dbug41567.phpt2 Bug #41567 (json_encode() double conversion is inconsistent with PHP)
8 $a = json_encode(123456789.12345);
H A Dbug42090.phpt10 json_encode('"'),
11 json_decode(json_encode('"')),
12 json_decode(json_encode('""'))
H A Dbug42785.phpt16 var_dump(json_encode($foo));
21 var_dump(json_encode($bar1));

Completed in 25 milliseconds

1234