From 073b7acc900c6c722e2eb26c52f877b0dab9a47c Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Sun, 19 Mar 2000 18:24:09 +0000 Subject: I suppose errors should be printed prior to endthread --- sapi/isapi/php4isapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sapi/isapi/php4isapi.c') 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 { -- cgit v1.2.1