cvs: /php4/sapi/isapi php4isapi.c
| From: | Shane Caraveo | Date: | Sun, 19 Mar 2000 18:22:41 +0000 |
| Subject: | cvs: /php4/sapi/isapi php4isapi.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12410@lists.php.net to get a copy of this message | ||
shane Sun Mar 19 10:22:41 2000 EDT
Modified files:
/php4/sapi/isapi php4isapi.c
Log:
do this only on win32
Index: php4/sapi/isapi/php4isapi.c
diff -u php4/sapi/isapi/php4isapi.c:1.31 php4/sapi/isapi/php4isapi.c:1.32
--- php4/sapi/isapi/php4isapi.c:1.31 Sun Mar 19 09:59:05 2000
+++ php4/sapi/isapi/php4isapi.c Sun Mar 19 10:22:11 2000
@@ -504,6 +504,7 @@
#endif
}
+#ifdef PHP_WIN32
// ___except can only call a function, so we have to do this
// to retrieve the pointer.
BOOL exceptionhandler(LPEXCEPTION_POINTERS *e,LPEXCEPTION_POINTERS ep)
@@ -511,6 +512,7 @@
*e=ep;
return TRUE;
}
+#endif
DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB)
{
@@ -520,7 +522,9 @@
CLS_FETCH();
ELS_FETCH();
PLS_FETCH();
+#ifdef PHP_WIN32
LPEXCEPTION_POINTERS e;
+#endif
if (setjmp(EG(bailout))!=0) {
php_request_shutdown(NULL);
@@ -540,8 +544,11 @@
if (SG(request_info).cookie_data) {
efree(SG(request_info).cookie_data);
}
+#ifdef PHP_WIN32
} __except(exceptionhandler(&e,GetExceptionInformation())) {
-// } __except(EXCEPTION_EXECUTE_HANDLER) {
+#else
+ } __except(EXCEPTION_EXECUTE_HANDLER) {
+#endif
#ifdef PHP_WIN32
char buf[1024];
if (_exception_code()==EXCEPTION_STACK_OVERFLOW) {