Changeset 919


Ignore:
Timestamp:
2012-06-23T20:01:31+02:00 (22 months ago)
Author:
moo
Message:

fix version string in core dump filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r918 r919  
    34073407       (e.g. Windows 2000) */ 
    34083408    char dbghelpPath[_MAX_PATH]; 
     3409    const char *phpVersion; 
    34093410 
    34103411    if (GetModuleFileName(NULL, dbghelpPath, _MAX_PATH)) { 
     
    34313432    } 
    34323433 
    3433     sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu.dmp", xc_coredump_dir, PHP_VERSION, XCACHE_VERSION, (unsigned long) GetCurrentProcessId()); 
     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.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) GetCurrentProcessId()); 
    34343442 
    34353443    oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter); 
Note: See TracChangeset for help on using the changeset viewer.