Index: trunk/xcache.c
===================================================================
--- trunk/xcache.c	(revision 918)
+++ trunk/xcache.c	(revision 919)
@@ -3407,4 +3407,5 @@
 	   (e.g. Windows 2000) */
 	char dbghelpPath[_MAX_PATH];
+	const char *phpVersion;
 
 	if (GetModuleFileName(NULL, dbghelpPath, _MAX_PATH)) {
@@ -3431,5 +3432,12 @@
 	}
 
-	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);
