/PHP-7.4/ext/json/ |
H A D | config.w32 | 3 ARG_ENABLE("json", "JavaScript Object Serialization support", "yes"); 6 EXTENSION('json', 'json.c', PHP_JSON_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); 8 if (!FSO.FileExists("ext/json/json_scanner.c")) { 9 STDOUT.WriteLine("Generating ext/json/json_scanner.c"); 10 …e(PATH_PROG("re2c") + " -t ext/json/php_json_scanner_defs.h --no-generation-date -bci -o ext/json/… 12 if (!FSO.FileExists("ext/json/json_parser.tab.c")) { 13 STDOUT.WriteLine("Generating ext/json/json_parser.tab.c"); 14 …STDOUT.WriteLine(execute(PATH_PROG("bison") + " --defines -l ext/json/json_parser.y -o ext/json/js… 17 ADD_SOURCES(configure_module_dirname, "json_encoder.c json_parser.tab.c json_scanner.c", "json"); 21 PHP_INSTALL_HEADERS("ext/json/", "php_json.h php_json_parser.h php_json_scanner.h");
|
H A D | Makefile.frag.w32 | 1 ext\json\json_scanner.c: ext\json\json_scanner.re 2 …$(RE2C) $(RE2C_FLAGS) -t ext/json/php_json_scanner_defs.h --no-generation-date -bci -o ext/json/js… 4 ext\json\json_parser.tab.c: ext\json\json_parser.y 5 $(BISON) --defines -l ext/json/json_parser.y -o ext/json/json_parser.tab.c
|
H A D | config.m4 | 1 PHP_ARG_ENABLE([json], 3 [AS_HELP_STRING([--disable-json], 10 PHP_NEW_EXTENSION(json, 11 json.c \ 16 PHP_INSTALL_HEADERS([ext/json], [php_json.h php_json_parser.h php_json_scanner.h])
|
H A D | json.c | 34 static PHP_MINFO_FUNCTION(json); 43 PHP_JSON_API ZEND_DECLARE_MODULE_GLOBALS(json) 53 ZEND_ARG_INFO(0, json) 92 static PHP_MINIT_FUNCTION(json) in PHP_MINIT_FUNCTION() argument 144 static PHP_GINIT_FUNCTION(json) in PHP_GINIT_FUNCTION() argument 162 PHP_MINIT(json), 166 PHP_MINFO(json), 168 PHP_MODULE_GLOBALS(json), 169 PHP_GINIT(json), 180 ZEND_GET_MODULE(json) in ZEND_GET_MODULE() argument [all …]
|
H A D | php_json.h | 88 ZEND_BEGIN_MODULE_GLOBALS(json) 92 ZEND_END_MODULE_GLOBALS(json) 94 PHP_JSON_API ZEND_EXTERN_MODULE_GLOBALS(json) 95 #define JSON_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(json, v)
|
/PHP-7.4/ext/json/tests/ |
H A D | bug73991.phpt | 4 <?php if(!extension_loaded('json')) die('skip json extension not loaded') ?> 8 $json = '{"foo":"bar"}'; 10 var_dump(json_decode($json, false)); 11 var_dump(json_decode($json, true)); 12 var_dump(json_decode($json, null, 512, 0)); 13 var_dump(json_decode($json, null, 512, JSON_OBJECT_AS_ARRAY));
|
H A D | 008.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 7 $json = '{"largenum":123456789012345678901234567890}'; 8 $x = json_decode($json); 10 $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING);
|
H A D | json_decode_invalid_utf8.phpt | 5 if (!extension_loaded("json")) print "skip"; 12 $json = json_decode($str, true, 512, JSON_INVALID_UTF8_SUBSTITUTE); 13 if (is_array($json)) { 14 var_dump(array_map(function($item) { return bin2hex($item); }, $json)); 16 var_dump(bin2hex($json));
|
H A D | bug41067.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 11 $json = json_encode($array); 12 print $json . "\n\n"; 13 $json_decoded = json_decode($json, true);
|
H A D | bug63737.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 7 function decode($json) { 8 $x = json_decode($json); 10 $x = json_decode($json, false, 512, JSON_BIGINT_AS_STRING);
|
H A D | bug54484.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 13 json_decode("invalid json"); 16 json_decode("\"\001 invalid json\"");
|
H A D | json_encode_pretty_print.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 7 function encode_decode($json) { 8 $struct = json_decode($json);
|
H A D | bug77843.phpt | 2 Bug #77843: Use after free with json serializer 4 <?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
|
H A D | bug64874_part2.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 7 function decode($json) { 8 var_dump(json_decode($json));
|
H A D | bug73113.phpt | 3 Also test that the custom exception is not wrapped by ext/json 5 <?php if (!extension_loaded("json")) print "skip"; ?>
|
H A D | json_decode_exceptions.phpt | 4 <?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
|
H A D | bug64874_part1.phpt | 4 <?php if (!extension_loaded("json")) print "skip"; ?> 7 function decode($json) { 8 var_dump(json_decode($json));
|
H A D | json_exceptions_error_clearing.phpt | 4 <?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
|
H A D | json_encode_exceptions.phpt | 4 <?php if(!extension_loaded('json')) die('skip json extension not loaded') ?>
|
/PHP-7.4/scripts/dev/ |
H A D | genfiles | 119 $MAKE RE2C="$RE2C" RE2C_FLAGS="$RE2C_FLAGS" YACC="$YACC" srcdir=ext/json builddir=ext/json top_srcd… 120 -f ext/json/Makefile.frag \ 121 ext/json/json_parser.tab.c \ 122 ext/json/json_scanner.c
|
/PHP-7.4/ext/simplexml/tests/ |
H A D | bug66084_1.phpt | 2 Bug #66084 simplexml_load_string() mangles empty node name, json variant 5 <?php if (!extension_loaded("json")) print "skip json not available"; ?>
|
/PHP-7.4/ext/opcache/tests/ |
H A D | jmp_elim_001.phpt | 5 <?php if (!extension_loaded("json")) print "skip"; ?> 14 header('Content-Type: application/json');
|
/PHP-7.4/ext/pcre/tests/ |
H A D | bug76514.phpt | 51 "heroku-sys/ext-json": "*", 252 "heroku-sys/ext-json": "*", 427 "name": "composer.json/composer.lock", 443 "composer.json/composer.lock": "dev-597511d6d51b96e4a8afeba2c79982e5", 489 (?<array> \[ (?: (?&json) \s* (?: , (?&json) \s* )* )? \s* \] ) 490 (?<pair> \s* (?&string) \s* : (?&json) \s* ) 492 (?<json> \s* (?: (?&number) | (?&boolean) | (?&string) | (?&array) | (?&object) ) ) 494 ^(?P<start>\s*\{\s*(?:(?&string)\s*:\s*(?&json)\s*,\s*)*?) 495 (?P<property>'.preg_quote('"require"').'\s*:\s*)(?P<value>(?&json))(?P<end>.*)}sx', $str, $match); 502 "composer.json/composer.lock": "dev-597511d6d51b96e4a8afeba2c79982e5",
|
H A D | bug79241.phpt | 4 <?php if (!extension_loaded("json")) print "skip json extension missing"; ?>
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | finfo_file_002.phpt | 32 ["%s/test.json"]=> 33 string(16) "application/json"
|