|
|
|
@ -3406,6 +3406,7 @@ 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, '\\');
|
|
|
|
@ -3430,7 +3431,14 @@ static void xcache_init_crash_handler() /* {{{ */
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu.dmp", xc_coredump_dir, PHP_VERSION, XCACHE_VERSION, (unsigned long) GetCurrentProcessId());
|
|
|
|
|
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.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) GetCurrentProcessId());
|
|
|
|
|
|
|
|
|
|
oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
|
|
|
|
|
}
|
|
|
|
|