Changeset 923 in svn for trunk/xcache.c


Ignore:
Timestamp:
2012-06-24T03:16:05Z (3 years ago)
Author:
Xuefer
Message:

fix version stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r922 r923  
    34073407       (e.g. Windows 2000) */
    34083408    char dbghelpPath[_MAX_PATH];
    3409     const char *phpVersion;
    34103409
    34113410    if (GetModuleFileName(NULL, dbghelpPath, _MAX_PATH)) {
     
    34323431    }
    34333432
    3434     phpVersion = zend_get_module_version("core");
    3435     if (!phpVersion) {
    3436         phpVersion = zend_get_module_version("standard");
    3437         if (!phpVersion) {
    3438             phpVersion = "unknown";
    3439         }
    3440     }
    3441     sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu-%lu.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
     3433#ifdef XCACHE_VERSION_REVISION
     3434#define REVISION "r" XCACHE_VERSION_REVISION
     3435#else
     3436#define REVISION ""
     3437#endif
     3438    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());
     3439#undef REVISION
    34423440
    34433441    oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
     
    35833581    php_info_print_table_header(2, "XCache Support", "enabled");
    35843582    php_info_print_table_row(2, "Version", XCACHE_VERSION);
     3583#ifdef XCACHE_VERSION_REVISION
     3584    php_info_print_table_row(2, "Revision", "r" XCACHE_VERSION_REVISION);
     3585#endif
    35853586    php_info_print_table_row(2, "Modules Built", XCACHE_MODULES);
    35863587    php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "N/A");
Note: See TracChangeset for help on using the changeset viewer.