]> granicus.if.org Git - php/commitdiff
Bump PHP_JSON_VERSION to PHP_VERSION
authorPeter Kokot <peterkokot@gmail.com>
Mon, 22 Jul 2019 21:25:44 +0000 (23:25 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Wed, 24 Jul 2019 20:19:33 +0000 (22:19 +0200)
Closes GH-4459

ext/json/json.c
ext/json/php_json.h

index b9b506e00b87a0ee5bdb964efe661ce2600e0cbc..84746422663aa771184b83ffc0b63de26993c10c 100644 (file)
@@ -186,7 +186,6 @@ static PHP_MINFO_FUNCTION(json)
 {
        php_info_print_table_start();
        php_info_print_table_row(2, "json support", "enabled");
-       php_info_print_table_row(2, "json version", PHP_JSON_VERSION);
        php_info_print_table_end();
 }
 /* }}} */
index 50ef76107b0491a15c63c95e1aaf4f0c28513923..99afe8dd2d767e02b8f237ac291c11eaea00148c 100644 (file)
 #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