summaryrefslogtreecommitdiff
path: root/ext/json/php_json.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/php_json.h')
-rw-r--r--ext/json/php_json.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h
index dfc9427622..8b86a99f71 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -30,6 +30,16 @@ extern zend_module_entry json_module_entry;
#include "TSRM.h"
#endif
+ZEND_BEGIN_MODULE_GLOBALS(json)
+ int error_code;
+ZEND_END_MODULE_GLOBALS(json)
+
+#ifdef ZTS
+# define JSON_G(v) TSRMG(json_globals_id, zend_json_globals *, v)
+#else
+# define JSON_G(v) (json_globals.v)
+#endif
+
#endif /* PHP_JSON_H */
/*