24#define PHP_JSON_VERSION PHP_VERSION
27#define phpext_json_ptr &json_module_entry
29#if defined(PHP_WIN32) && defined(JSON_EXPORTS)
30#define PHP_JSON_API __declspec(dllexport)
32#define PHP_JSON_API PHPAPI
58#define PHP_JSON_OBJECT_AS_ARRAY (1<<0)
59#define PHP_JSON_BIGINT_AS_STRING (1<<1)
62#define PHP_JSON_HEX_TAG (1<<0)
63#define PHP_JSON_HEX_AMP (1<<1)
64#define PHP_JSON_HEX_APOS (1<<2)
65#define PHP_JSON_HEX_QUOT (1<<3)
66#define PHP_JSON_FORCE_OBJECT (1<<4)
67#define PHP_JSON_NUMERIC_CHECK (1<<5)
68#define PHP_JSON_UNESCAPED_SLASHES (1<<6)
69#define PHP_JSON_PRETTY_PRINT (1<<7)
70#define PHP_JSON_UNESCAPED_UNICODE (1<<8)
71#define PHP_JSON_PARTIAL_OUTPUT_ON_ERROR (1<<9)
72#define PHP_JSON_PRESERVE_ZERO_FRACTION (1<<10)
73#define PHP_JSON_UNESCAPED_LINE_TERMINATORS (1<<11)
76#define PHP_JSON_INVALID_UTF8_IGNORE (1<<20)
79#define PHP_JSON_INVALID_UTF8_SUBSTITUTE (1<<21)
80#define PHP_JSON_THROW_ON_ERROR (1<<22)
83#define PHP_JSON_OUTPUT_ARRAY 0
84#define PHP_JSON_OUTPUT_OBJECT 1
87#define PHP_JSON_PARSER_DEFAULT_DEPTH 512
96#define JSON_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(json, v)
98#if defined(ZTS) && defined(COMPILE_DL_JSON)
zend_ffi_ctype_name_buf buf
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_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_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
PHP_JSON_API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_long depth)
#define PHP_JSON_OBJECT_AS_ARRAY
PHP_JSON_API size_t int options
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)
php_json_error_code error_code
#define ZEND_TSRMLS_CACHE_EXTERN()
#define ZEND_END_MODULE_GLOBALS(module_name)
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
struct _zend_string zend_string
struct _zend_module_entry zend_module_entry
struct _zend_class_entry zend_class_entry
ZEND_RESULT_CODE zend_result