Changeset 923


Ignore:
Timestamp:
2012-06-24T05:16:05+02:00 (22 months ago)
Author:
moo
Message:

fix version stuff

Location:
trunk
Files:
2 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"); 
  • trunk/xcache.h

    r917 r923  
    22#define __XCACHE_H 
    33#define XCACHE_NAME       "XCache" 
    4 #define XCACHE_VERSION    "2.0.0" 
     4#ifndef XCACHE_VERSION 
     5#   define XCACHE_VERSION "2.0.1-dev" 
     6#endif 
    57#define XCACHE_AUTHOR     "mOo" 
    68#define XCACHE_COPYRIGHT  "Copyright (c) 2005-2012" 
Note: See TracChangeset for help on using the changeset viewer.