]> granicus.if.org Git - php/commitdiff
I suppose errors should be printed prior to endthread
authorShane Caraveo <shane@php.net>
Sun, 19 Mar 2000 18:24:09 +0000 (18:24 +0000)
committerShane Caraveo <shane@php.net>
Sun, 19 Mar 2000 18:24:09 +0000 (18:24 +0000)
sapi/isapi/php4isapi.c

index 475d3d3303a0abf13a305c6fc3c66825d16e591b..1266ba31527cc85044ae143bb240c80b35ca70ab 100644 (file)
@@ -580,14 +580,16 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB)
 
                        CG(unclean_shutdown)=1;
                        _snprintf(buf,sizeof(buf)-1,"PHP has encountered a Stack overflow");
+                       php_isapi_report_exception(buf, strlen(buf) SLS_CC);
                } else if (_exception_code()==EXCEPTION_ACCESS_VIOLATION) {
                        _snprintf(buf,sizeof(buf)-1,"PHP has encountered an Access Violation at %p",e->ExceptionRecord->ExceptionAddress);
+                       php_isapi_report_exception(buf, strlen(buf) SLS_CC);
                        my_endthread();
                } else {
                        _snprintf(buf,sizeof(buf)-1,"PHP has encountered an Unhandled Exception Code %d at %p",e->ExceptionRecord->ExceptionCode , e->ExceptionRecord->ExceptionAddress);
+                       php_isapi_report_exception(buf, strlen(buf) SLS_CC);
                        my_endthread();
                }
-               php_isapi_report_exception(buf, strlen(buf) SLS_CC);
 #endif
        }
        __try {