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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/json/php_json.h b/ext/json/php_json.h
index 50ef76107b..99afe8dd2d 100644
--- a/ext/json/php_json.h
+++ b/ext/json/php_json.h
@@ -20,9 +20,11 @@
#ifndef PHP_JSON_H
#define PHP_JSON_H
-#define PHP_JSON_VERSION "1.7.0"
+#include "php_version.h"
#include "zend_smart_str_public.h"
+#define PHP_JSON_VERSION PHP_VERSION
+
extern zend_module_entry json_module_entry;
#define phpext_json_ptr &json_module_entry