From: Shane Caraveo Date: Sun, 19 Mar 2000 18:24:09 +0000 (+0000) Subject: I suppose errors should be printed prior to endthread X-Git-Tag: PHP-4.0-RC1~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=073b7acc900c6c722e2eb26c52f877b0dab9a47c;p=php I suppose errors should be printed prior to endthread --- diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index 475d3d3303..1266ba3152 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -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 {