From: Zeev Suraski Date: Wed, 28 Jan 2004 09:07:02 +0000 (+0000) Subject: Forward-port fix for timeouts under Windows X-Git-Tag: php-5.0.0b4RC1~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c15d4ddb2be58cf9906344dc143918de0938810d;p=php Forward-port fix for timeouts under Windows --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 3d2c4ccd28..6cf4a2ebcb 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1007,7 +1007,15 @@ static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wPa if (lParam==0) { KillTimer(timeout_window, wParam); } else { + void ***tsrm_ls; + SetTimer(timeout_window, wParam, lParam*1000, NULL); + tsrm_ls = ts_resource_ex(0, &wParam); + if (!tsrm_ls) { + /* shouldn't normally happen */ + break; + } + EG(timed_out) = 0; } break; case WM_UNREGISTER_ZEND_TIMEOUT: