Index: trunk/xcache.c
===================================================================
--- trunk/xcache.c	(revision 922)
+++ trunk/xcache.c	(revision 923)
@@ -3407,5 +3407,4 @@
 	   (e.g. Windows 2000) */
 	char dbghelpPath[_MAX_PATH];
-	const char *phpVersion;
 
 	if (GetModuleFileName(NULL, dbghelpPath, _MAX_PATH)) {
@@ -3432,12 +3431,11 @@
 	}
 
-	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-%lu.dmp", xc_coredump_dir, phpVersion, XCACHE_VERSION, (unsigned long) time(NULL), (unsigned long) GetCurrentProcessId());
+#ifdef XCACHE_VERSION_REVISION
+#define REVISION "r" XCACHE_VERSION_REVISION
+#else
+#define REVISION ""
+#endif
+	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());
+#undef REVISION
 
 	oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
@@ -3583,4 +3581,7 @@
 	php_info_print_table_header(2, "XCache Support", "enabled");
 	php_info_print_table_row(2, "Version", XCACHE_VERSION);
+#ifdef XCACHE_VERSION_REVISION
+	php_info_print_table_row(2, "Revision", "r" XCACHE_VERSION_REVISION);
+#endif
 	php_info_print_table_row(2, "Modules Built", XCACHE_MODULES);
 	php_info_print_table_row(2, "Readonly Protection", xc_readonly_protection ? "enabled" : "N/A");
