cvs: ZendEngine2 / zend_execute_API.c
| From: | Zeev Suraski | Date: | Wed, 28 Jan 2004 09:07:04 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2286@lists.php.net to get a copy of this message | ||
zeev Wed Jan 28 04:07:04 2004 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
Forward-port fix for timeouts under Windows
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.255&r2=1.256&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.255 ZendEngine2/zend_execute_API.c:1.256
--- ZendEngine2/zend_execute_API.c:1.255 Sat Jan 24 11:59:24 2004
+++ ZendEngine2/zend_execute_API.c Wed Jan 28 04:07:02 2004
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.255 2004/01/24 16:59:24 helly Exp $ */
+/* $Id: zend_execute_API.c,v 1.256 2004/01/28 09:07:02 zeev Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -1007,7 +1007,15 @@
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: