Changeset 1106 for trunk/xcache.c


Ignore:
Timestamp:
2012-08-01T18:54:51+02:00 (21 months ago)
Author:
moo
Message:

adds disable_on_crash support for win32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1067 r1106  
    417417{ 
    418418    HANDLE fileHandle; 
     419    LONG ret = EXCEPTION_CONTINUE_SEARCH; 
    419420 
    420421    SetUnhandledExceptionFilter(oldFilter); 
     
    436437        if (ok) { 
    437438            zend_error(E_ERROR, "Saved dump file to '%s'", crash_dumpPath); 
    438             return EXCEPTION_EXECUTE_HANDLER; 
     439            ret = EXCEPTION_EXECUTE_HANDLER; 
    439440        } 
    440441        else { 
     
    446447    } 
    447448 
    448     return EXCEPTION_CONTINUE_SEARCH; 
     449    if (xc_disable_on_crash) { 
     450        xc_disable_on_crash = 0; 
     451        xc_cacher_disable(); 
     452    } 
     453 
     454    return ret; 
    449455} 
    450456/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.