Index: trunk/xcache.c
===================================================================
--- trunk/xcache.c	(revision 1181)
+++ trunk/xcache.c	(revision 1182)
@@ -37,4 +37,5 @@
 /* {{{ globals */
 static char *xc_coredump_dir = NULL;
+static zend_bool xc_coredump_type = 0;
 static zend_bool xc_disable_on_crash = 0;
 
@@ -430,4 +431,5 @@
 	if (fileHandle != INVALID_HANDLE_VALUE) {
 		MINIDUMP_EXCEPTION_INFORMATION exceptionInformation;
+		MINIDUMP_TYPE type = xc_coredump_type ? xc_coredump_type : (MiniDumpNormal|MiniDumpWithDataSegs|MiniDumpWithIndirectlyReferencedMemory);
 		BOOL ok;
 
@@ -437,5 +439,5 @@
 
 		/* write the dump */
-		ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, MiniDumpNormal|MiniDumpWithDataSegs|MiniDumpWithIndirectlyReferencedMemory, &exceptionInformation, NULL, NULL);
+		ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, type, &exceptionInformation, NULL, NULL);
 		CloseHandle(fileHandle);
 		if (ok) {
@@ -719,4 +721,5 @@
 PHP_INI_BEGIN()
 	PHP_INI_ENTRY1     ("xcache.coredump_directory",      "", PHP_INI_SYSTEM, xcache_OnUpdateString,   &xc_coredump_dir)
+	PHP_INI_ENTRY1     ("xcache.coredump_type",          "0", PHP_INI_SYSTEM, xcache_OnUpdateULong,    &xc_coredump_type)
 	PHP_INI_ENTRY1_EX  ("xcache.disable_on_crash",       "0", PHP_INI_SYSTEM, xcache_OnUpdateBool,     &xc_disable_on_crash, zend_ini_boolean_displayer_cb)
 	PHP_INI_ENTRY1_EX  ("xcache.test",                   "0", PHP_INI_SYSTEM, xcache_OnUpdateBool,     &xc_test,             zend_ini_boolean_displayer_cb)
