Changeset 6ae47f3 in git


Ignore:
Timestamp:
2012-06-23T18:01:31Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
36d9fcf
Parents:
e650948
Message:

fix version string in core dump filename

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@919 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    re650948 r6ae47f3  
    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.