Browse Source

fix version macros name

Anatol Belski 11 years ago
parent
commit
c0290d4a17
2 changed files with 3 additions and 3 deletions
  1. 1 1
      php_v8js_macros.h
  2. 2 2
      v8js.cc

+ 1 - 1
php_v8js_macros.h

@@ -32,7 +32,7 @@ extern "C" {
 #include <mutex>
 
 /* V8Js Version */
-#define V8JS_VERSION "0.1.3"
+#define PHP_V8JS_VERSION "0.1.3"
 
 /* Helper macros */
 #define V8JS_SYM(v)			v8::String::NewSymbol(v, sizeof(v) - 1)

+ 2 - 2
v8js.cc

@@ -1497,7 +1497,7 @@ static PHP_MINFO_FUNCTION(v8js)
 	php_info_print_table_header(2, "V8 Javascript Engine", "enabled");
 	php_info_print_table_header(2, "V8 Engine Compiled Version", PHP_V8_VERSION);
 	php_info_print_table_header(2, "V8 Engine Linked Version", v8::V8::GetVersion());
-	php_info_print_table_header(2, "Version", V8JS_VERSION);
+	php_info_print_table_header(2, "Version", PHP_V8JS_VERSION);
 	php_info_print_table_end();
 
 	DISPLAY_INI_ENTRIES();
@@ -1536,7 +1536,7 @@ zend_module_entry v8js_module_entry = {
 	NULL,
 	PHP_RSHUTDOWN(v8js),
 	PHP_MINFO(v8js),
-	V8JS_VERSION,
+	PHP_V8JS_VERSION,
 	PHP_MODULE_GLOBALS(v8js),
 	PHP_GINIT(v8js),
 	NULL,