diff options
author | Shane Caraveo <shane@php.net> | 2000-03-19 18:24:09 +0000 |
---|---|---|
committer | Shane Caraveo <shane@php.net> | 2000-03-19 18:24:09 +0000 |
commit | 073b7acc900c6c722e2eb26c52f877b0dab9a47c (patch) | |
tree | 056d7aa710361d150a7b3fe931b88565228cf6cc /sapi | |
parent | 42c874ba5f94cb9b690587003251282d85efa8ab (diff) | |
download | php-git-073b7acc900c6c722e2eb26c52f877b0dab9a47c.tar.gz |
I suppose errors should be printed prior to endthread
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/isapi/php4isapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |