52 register_json_symbols(module_number);
61#if defined(COMPILE_DL_JSON) && defined(ZTS)
64 json_globals->encoder_depth = 0;
65 json_globals->error_code = 0;
116 php_json_encode_init(&encoder);
119 smart_str_free(&
buf);
123 return smart_str_extract(&
buf);
131 php_json_encode_init(&encoder);
153 return "Maximum stack depth exceeded";
155 return "State mismatch (invalid or malformed JSON)";
157 return "Control character error, possibly incorrectly encoded";
159 return "Syntax error";
161 return "Malformed UTF-8 characters, possibly incorrectly encoded";
163 return "Recursion detected";
165 return "Inf and NaN cannot be JSON encoded";
167 return "Type is not supported";
169 return "The decoded property name is invalid";
171 return "Single unpaired UTF-16 surrogate in unicode escape";
173 return "Non-backed enums have no default serialization";
175 return "Unknown error";
235 php_json_encode_init(&encoder);
242 smart_str_free(&
buf);
247 smart_str_free(&
buf);
zend_ffi_ctype_name_buf buf
PHP_JSON_API zend_result php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth)
PHP_JSON_API zend_result php_json_encode(smart_str *buf, zval *val, int options)
PHP_JSON_API zend_class_entry * php_json_exception_ce
PHP_JSON_API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_long depth)
PHP_JSON_API zend_string * php_json_encode_string(const char *s, size_t len, int options)
zend_module_entry json_module_entry
PHP_JSON_API zend_class_entry * php_json_serializable_ce
PHP_JSON_API zend_result php_json_decode_ex(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth)
json_validate(string $json, int $depth=512, int $flags=0)
json_encode(mixed $value, int $flags=0, int $depth=512)
json_decode(string $json, ?bool $associative=null, int $depth=512, int $flags=0)
zend_result php_json_encode_zval(smart_str *buf, zval *val, int options, php_json_encoder *encoder)
zend_result php_json_escape_string(smart_str *buf, const char *s, size_t len, int options, php_json_encoder *encoder)
php_info_print_table_start()
php_info_print_table_row(2, "PDO Driver for Firebird", "enabled")
php_info_print_table_end()
#define PHP_MINIT_FUNCTION
#define PHP_MINFO_FUNCTION
#define PHP_GINIT_FUNCTION
#define PHP_RINIT_FUNCTION
#define PHP_MODULE_GLOBALS
#define PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
#define PHP_JSON_INVALID_UTF8_IGNORE
@ PHP_JSON_ERROR_UNSUPPORTED_TYPE
@ PHP_JSON_ERROR_INVALID_PROPERTY_NAME
@ PHP_JSON_ERROR_INF_OR_NAN
@ PHP_JSON_ERROR_NON_BACKED_ENUM
@ PHP_JSON_ERROR_RECURSION
@ PHP_JSON_ERROR_STATE_MISMATCH
@ PHP_JSON_ERROR_CTRL_CHAR
#define PHP_JSON_THROW_ON_ERROR
#define PHP_JSON_OBJECT_AS_ARRAY
#define PHP_JSON_PARSER_DEFAULT_DEPTH
PHP_JSON_API size_t int options
php_json_error_code error_code
struct _php_json_encoder php_json_encoder
struct _php_json_parser php_json_parser
PHP_JSON_API void php_json_parser_init_ex(php_json_parser *parser, zval *return_value, const char *str, size_t str_len, int options, int max_depth, const php_json_parser_methods *methods)
PHP_JSON_API void php_json_parser_init(php_json_parser *parser, zval *return_value, const char *str, size_t str_len, int options, int max_depth)
const php_json_parser_methods * php_json_get_validate_methods(void)
int php_json_yyparse(php_json_parser *parser)
PHP_JSON_API php_json_error_code php_json_parser_error_code(const php_json_parser *parser)
struct _php_json_parser_methods php_json_parser_methods
php_json_error_code error_code
#define ZEND_TSRMLS_CACHE_UPDATE()
#define ZEND_TSRMLS_CACHE_DEFINE()
ZEND_API ZEND_COLD void zend_argument_value_error(uint32_t arg_num, const char *format,...)
#define ZEND_PARSE_PARAMETERS_END()
#define ZEND_PARSE_PARAMETERS_NONE()
#define ZEND_DECLARE_MODULE_GLOBALS(module_name)
#define ZEND_GET_MODULE(name)
#define Z_PARAM_STRING(dest, dest_len)
#define ZEND_PARSE_PARAMETERS_START(min_num_args, max_num_args)
#define Z_PARAM_BOOL_OR_NULL(dest, is_null)
#define Z_PARAM_LONG(dest)
#define Z_PARAM_ZVAL(dest)
#define ZEND_ACC_USE_GUARDS
ZEND_API zend_class_entry * zend_ce_exception
ZEND_API ZEND_COLD zend_object * zend_throw_exception(zend_class_entry *exception_ce, const char *message, zend_long code)
struct _zend_string zend_string
#define STANDARD_MODULE_HEADER
struct _zend_module_entry zend_module_entry
#define STANDARD_MODULE_PROPERTIES_EX
struct _zend_class_entry zend_class_entry
ZEND_RESULT_CODE zend_result