com php-src: fix json globals: ext/json/json_encoder.c ex t/json/php_json.h
| From: | Michael Wallner | Date: | Mon, 09 Feb 2015 16:57:18 +0000 |
| Subject: | com php-src: fix json globals: ext/json/json_encoder.c ex t/json/php_json.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84751@lists.php.net to get a copy of this message | ||
Commit: 09a3e7377a30cad769b5c92254e101a32ab77731
Author: Michael Wallner <mike@php.net> Mon, 9 Feb 2015 17:57:05 +0100
Parents: 9ff3800b79e9fe69ae821d18e23b2f0a156a100c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=09a3e7377a30cad769b5c92254e101a32ab77731
Log:
fix json globals
Changed paths:
M ext/json/json_encoder.c
M ext/json/php_json.h
Diff:
diff --git a/ext/json/json_encoder.c b/ext/json/json_encoder.c
index 8fabf77..c66f3d5 100644
--- a/ext/json/json_encoder.c
+++ b/ext/json/json_encoder.c
@@ -39,8 +39,6 @@
#define PHP_JSON_DOUBLE_MAX_LENGTH 1080
#endif
-ZEND_DECLARE_MODULE_GLOBALS(json)
-
static const char digits[] = "0123456789abcdef";
static void php_json_escape_string(smart_str *buf, char *s, size_t len, int options);
diff --git a/ext/json/php_json.h b/ext/json/php_json.h
index 65ae830..5bc2cfa 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -80,6 +80,7 @@ ZEND_BEGIN_MODULE_GLOBALS(json)
php_json_error_code error_code;
ZEND_END_MODULE_GLOBALS(json)
+ZEND_EXTERN_MODULE_GLOBALS(json);
#ifdef ZTS
# define JSON_G(v) ZEND_TSRMG(json_globals_id, zend_json_globals *, v)