Changeset 1182 for trunk/xcache.c


Ignore:
Timestamp:
2012-12-06T09:48:01+01:00 (2 years ago)
Author:
moo
Message:

adds xcache.coredump_type, updated ini example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1181 r1182  
    3737/* {{{ globals */
    3838static char *xc_coredump_dir = NULL;
     39static zend_bool xc_coredump_type = 0;
    3940static zend_bool xc_disable_on_crash = 0;
    4041
     
    430431    if (fileHandle != INVALID_HANDLE_VALUE) {
    431432        MINIDUMP_EXCEPTION_INFORMATION exceptionInformation;
     433        MINIDUMP_TYPE type = xc_coredump_type ? xc_coredump_type : (MiniDumpNormal|MiniDumpWithDataSegs|MiniDumpWithIndirectlyReferencedMemory);
    432434        BOOL ok;
    433435
     
    437439
    438440        /* write the dump */
    439         ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, MiniDumpNormal|MiniDumpWithDataSegs|MiniDumpWithIndirectlyReferencedMemory, &exceptionInformation, NULL, NULL);
     441        ok = dbghelp_MiniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(), fileHandle, type, &exceptionInformation, NULL, NULL);
    440442        CloseHandle(fileHandle);
    441443        if (ok) {
     
    719721PHP_INI_BEGIN()
    720722    PHP_INI_ENTRY1     ("xcache.coredump_directory",      "", PHP_INI_SYSTEM, xcache_OnUpdateString,   &xc_coredump_dir)
     723    PHP_INI_ENTRY1     ("xcache.coredump_type",          "0", PHP_INI_SYSTEM, xcache_OnUpdateULong,    &xc_coredump_type)
    721724    PHP_INI_ENTRY1_EX  ("xcache.disable_on_crash",       "0", PHP_INI_SYSTEM, xcache_OnUpdateBool,     &xc_disable_on_crash, zend_ini_boolean_displayer_cb)
    722725    PHP_INI_ENTRY1_EX  ("xcache.test",                   "0", PHP_INI_SYSTEM, xcache_OnUpdateBool,     &xc_test,             zend_ini_boolean_displayer_cb)
Note: See TracChangeset for help on using the changeset viewer.