#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)
*e=ep;
return TRUE;
}
+#endif
DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB)
{
CLS_FETCH();
ELS_FETCH();
PLS_FETCH();
+#ifdef PHP_WIN32
LPEXCEPTION_POINTERS e;
+#endif
if (setjmp(EG(bailout))!=0) {
php_request_shutdown(NULL);
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) {