1
0
Fork 0

fix version stuff

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@923 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2012-06-24 03:16:05 +00:00
parent 7871ef9b77
commit b99fe43f25
2 changed files with 13 additions and 10 deletions

View File

@ -3406,7 +3406,6 @@ static void xcache_init_crash_handler() /* {{{ */
look next to the EXE first, as the one in System32 might be old
(e.g. Windows 2000) */
char dbghelpPath[_MAX_PATH];
const char *phpVersion;
if (GetModuleFileName(NULL, dbghelpPath, _MAX_PATH)) {
char *slash = strchr(dbghelpPath, '\\');
@ -3431,14 +3430,13 @@ static void xcache_init_crash_handler() /* {{{ */
return;
}
phpVersion = zend_get_module_version("core");
if (!phpVersion) {
phpVersion = zend_get_module_version("standard");
if (!phpVersion) {
phpVersion = "unknown";
}
}
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu-%lu.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
#ifdef XCACHE_VERSION_REVISION
#define REVISION "r" XCACHE_VERSION_REVISION
#else
#define REVISION ""
#endif
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s%s-%lu-%lu.dmp", xc_coredump_dir, zend_get_module_version("standard"), XCACHE_VERSION, REVISION , (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
#undef REVISION
oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
}
@ -3582,6 +3580,9 @@ static PHP_MINFO_FUNCTION(xcache)
php_info_print_table_start();
php_info_print_table_header(2, "XCache Support", "enabled");
php_info_print_table_row(2, "Version", XCACHE_VERSION);
#ifdef XCACHE_VERSION_REVISION
php_info_print_table_row(2, "Revision", "r" XCACHE_VERSION_REVISION);
#endif
php_info_print_table_row(2, "Modules Built", XCACHE_MODULES);
php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "N/A");
#ifdef ZEND_ENGINE_2_1

View File

@ -1,7 +1,9 @@
#ifndef __XCACHE_H
#define __XCACHE_H
#define XCACHE_NAME "XCache"
#define XCACHE_VERSION "2.0.0"
#ifndef XCACHE_VERSION
# define XCACHE_VERSION "2.0.1-dev"
#endif
#define XCACHE_AUTHOR "mOo"
#define XCACHE_COPYRIGHT "Copyright (c) 2005-2012"
#define XCACHE_URL "http://xcache.lighttpd.net"