diff options
author | Jakub Zelenka <bukka@php.net> | 2014-12-27 19:42:04 +0000 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2014-12-27 19:42:04 +0000 |
commit | b68da91d52801fb2cc4d2a4a44c859ea5b6c622b (patch) | |
tree | 290f7c8ea7fd2df02c995b07c1d490c2de333db5 /ext/json/php_json.h | |
parent | 4f6539bdaf62f0343f4ec67638d2f96e8c1c00ae (diff) | |
parent | a9e86957c70c181e830ba05bb030c468d0cb15e1 (diff) | |
download | php-git-b68da91d52801fb2cc4d2a4a44c859ea5b6c622b.tar.gz |
Merge branch 'master' into jsond
Conflicts:
ext/json/JSON_parser.c
ext/json/JSON_parser.h
ext/json/config.m4
ext/json/config.w32
ext/json/json.c
ext/json/php_json.h
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r-- | ext/json/php_json.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h index 2e0bc1b2ee..25c799b383 100644 --- a/ext/json/php_json.h +++ b/ext/json/php_json.h @@ -78,8 +78,12 @@ ZEND_BEGIN_MODULE_GLOBALS(json) php_json_error_code error_code; ZEND_END_MODULE_GLOBALS(json) + #ifdef ZTS -# define JSON_G(v) TSRMG(json_globals_id, zend_json_globals *, v) +# define JSON_G(v) ZEND_TSRMG(json_globals_id, zend_json_globals *, v) +# ifdef COMPILE_DL_JSON +ZEND_TSRMLS_CACHE_EXTERN; +# endif #else # define JSON_G(v) (json_globals.v) #endif @@ -88,12 +92,12 @@ ZEND_END_MODULE_GLOBALS(json) #define PHP_JSON_OBJECT_AS_ARRAY (1<<0) #define PHP_JSON_BIGINT_AS_STRING (1<<1) -PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC); -PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth TSRMLS_DC); +PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options); +PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth); -static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth TSRMLS_DC) +static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth) { - php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth TSRMLS_CC); + php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth); } |