Searched refs:json_encode (Results 1 – 25 of 28) sorted by relevance
12
/PHP-5.3/ext/json/tests/ |
H A D | 002.phpt | 2 json_encode() tests 8 var_dump(json_encode("")); 9 var_dump(json_encode(NULL)); 10 var_dump(json_encode(TRUE)); 12 var_dump(json_encode(array(""=>""))); 13 var_dump(json_encode(array(array(1)))); 14 var_dump(json_encode(array())); 16 var_dump(json_encode(array(""=>""), JSON_FORCE_OBJECT)); 18 var_dump(json_encode(array(), JSON_FORCE_OBJECT)); 20 var_dump(json_encode(1)); [all …]
|
H A D | json_encode_error.phpt | 2 Test json_encode() function : error conditions 11 /* Prototype : string json_encode ( mixed $value [, int $options=0 ] ) 17 echo "*** Testing json_encode() : error conditions ***\n"; 19 echo "\n-- Testing json_encode() function with no arguments --\n"; 20 var_dump( json_encode() ); 24 var_dump( json_encode("abc", 0, $extra_arg) ); 29 *** Testing json_encode() : error conditions *** 31 -- Testing json_encode() function with no arguments -- 33 Warning: json_encode() expects at least 1 parameter, 0 given in %s on line %d 36 -- Testing json_encode() function with more than expected no. of arguments -- [all …]
|
H A D | 006.phpt | 2 json_encode() & extended encoding 10 echo "Normal: ", json_encode($a), "\n"; 11 echo "Tags: ", json_encode($a,JSON_HEX_TAG), "\n"; 12 echo "Apos: ", json_encode($a,JSON_HEX_APOS), "\n"; 13 echo "Quot: ", json_encode($a,JSON_HEX_QUOT), "\n"; 14 echo "Amp: ", json_encode($a,JSON_HEX_AMP), "\n"; 15 echo "All: ", json_encode($a,JSON_HEX_TAG|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_AMP), "\n";
|
H A D | bug43941.phpt | 2 Bug #43941 (json_encode() invalid UTF-8) 8 var_dump(json_encode("abc")); 9 var_dump(json_encode("ab\xE0")); 10 var_dump(json_encode("ab\xE0c")); 11 var_dump(json_encode(array("ab\xE0", "ab\xE0c", "abc")));
|
H A D | json_encode_basic_utf8.phpt | 2 Test json_encode() function : basic functionality with UTF8 string input 11 /* Prototype : string json_encode ( mixed $value ) 16 echo "*** Testing json_encode() : basic functionality with UTF-8 input***\n"; 19 var_dump(json_encode($utf8_string)); 24 *** Testing json_encode() : basic functionality with UTF-8 input***
|
H A D | bug54058.phpt | 10 json_encode($bad_utf8); 15 json_encode($a); 21 json_encode($b); 28 json_encode($c);
|
H A D | bug42090.phpt | 12 json_encode('"'), 13 json_decode(json_encode('"')), 14 json_decode(json_encode('""'))
|
H A D | bug40503.phpt | 2 Bug #40503 (json_encode() value corruption on 32bit systems with overflown values) 14 show_eq("$value", json_encode($value)); 16 show_eq("$value", json_encode($value));
|
H A D | 004.phpt | 2 json_encode() & endless loop - 2 12 var_dump(json_encode($a)); 22 Warning: json_encode(): recursion detected in %s on line %d
|
H A D | 003.phpt | 2 json_encode() & endless loop - 1 12 var_dump(json_encode($a)); 28 Warning: json_encode(): recursion detected in %s on line %d
|
H A D | json_encode_basic.phpt | 2 Test json_encode() function : basic functionality 11 /* Prototype : string json_encode ( mixed $value ) 16 echo "*** Testing json_encode() : basic functionality ***\n"; 90 // loop through with each element of the $inputs array to test json_encode() function 94 var_dump(json_encode($input)); 101 *** Testing json_encode() : basic functionality *** 154 Warning: json_encode(): type is unsupported, encoded as null in %s on line %d
|
H A D | bug55543.phpt | 2 Bug #55543 (json_encode() with JSON_NUMERIC_CHECK & numeric string properties) 10 var_dump(json_encode($a, JSON_NUMERIC_CHECK));
|
H A D | 005.phpt | 2 json_encode() & endless loop - 3 12 var_dump(json_encode($a));
|
H A D | bug41567.phpt | 2 Bug #41567 (json_encode() double conversion is inconsistent with PHP) 10 $a = json_encode(123456789.12345);
|
H A D | bug41034.phpt | 2 Bug #41034 (json_encode() ignores null byte started keys in arrays) 7 echo json_encode(array(0,"\0ab"=>1,"\0null-prefixed value"));
|
H A D | bug46215.phpt | 2 Bug #46215 (json_encode mutates its parameter and has some class-specific state) 17 $x = json_encode($a);
|
H A D | bug41067.phpt | 2 Bug #41067 (json_encode() problem with UTF-16 input) 11 $json = json_encode($array);
|
H A D | bug42785.phpt | 16 var_dump(json_encode($foo)); 22 var_dump(json_encode($bar1));
|
H A D | bug46944.phpt | 2 Bug #46944 (json_encode() doesn't handle 3 byte utf8 correctly) 12 echo json_encode($string) . "\n";
|
H A D | pass002.phpt | 20 $obj_enc = json_encode($obj); 23 $arr_enc = json_encode($arr);
|
H A D | pass003.phpt | 28 $obj_enc = json_encode($obj); 31 $arr_enc = json_encode($arr);
|
H A D | pass001.phpt | 82 $obj_enc = json_encode($obj); 85 $arr_enc = json_encode($arr);
|
H A D | pass001.1.phpt | 93 $obj_enc = json_encode($obj); 96 $arr_enc = json_encode($arr);
|
/PHP-5.3/ext/json/ |
H A D | README | 14 string json_encode ( mixed value ) 16 json_encode returns a string containing the JSON representation of value. 30 echo json_encode($arr);
|
H A D | json.c | 34 static PHP_FUNCTION(json_encode); 60 PHP_FE(json_encode, arginfo_json_encode) 560 static PHP_FUNCTION(json_encode) in PHP_FUNCTION() argument
|
Completed in 47 milliseconds
12