Skip to content

Commit dee243d

Browse files
committed
Bump PHP_JSON_VERSION to PHP_VERSION
Closes GH-4459
1 parent a316996 commit dee243d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ext/json/json.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ static PHP_MINFO_FUNCTION(json)
186186
{
187187
php_info_print_table_start();
188188
php_info_print_table_row(2, "json support", "enabled");
189-
php_info_print_table_row(2, "json version", PHP_JSON_VERSION);
190189
php_info_print_table_end();
191190
}
192191
/* }}} */

ext/json/php_json.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
#ifndef PHP_JSON_H
2121
#define PHP_JSON_H
2222

23-
#define PHP_JSON_VERSION "1.7.0"
23+
#include "php_version.h"
2424
#include "zend_smart_str_public.h"
2525

26+
#define PHP_JSON_VERSION PHP_VERSION
27+
2628
extern zend_module_entry json_module_entry;
2729
#define phpext_json_ptr &json_module_entry
2830

0 commit comments

Comments
 (0)