cvs: ZendEngine2(PHP_5_1) / zend_execute_API.c php-src NEWS

From: Date: Fri, 09 Dec 2005 18:10:46 +0000
Subject: cvs: ZendEngine2(PHP_5_1) / zend_execute_API.c php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4440@lists.php.net to get a copy of this message
dmitry Fri Dec 9 13:10:46 2005 EDT Modified files: (Branch: PHP_5_1) /php-src NEWS /ZendEngine2 zend_execute_API.c Log: Fixed bug #35612 (iis6 Access Violation crash) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.282&r2=1.2027.2.283&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.282 php-src/NEWS:1.2027.2.283 --- php-src/NEWS:1.2027.2.282 Fri Dec 9 13:07:54 2005 +++ php-src/NEWS Fri Dec 9 13:10:42 2005 @@ -24,6 +24,7 @@ - Fixed many bugs in OCI8. (Tony) - Fixed crash and leak in mysqli when using 4.1.x client libraries and connecting to 5.x server. (Andrey) +- Fixed bug #35612 (iis6 Access Violation crash). (Dmitry, alacn.uhahaa) - Fixed bug #35594 (Multiple calls to getopt() may result in a crash). (rabbitt at gmail dot com, Ilia) - Fixed bug #35558 (mktime() interpreting 3 digit years incorrectly). (Ilia) http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.331.2.6&r2=1.331.2.7&ty=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.331.2.6 ZendEngine2/zend_execute_API.c:1.331.2.7 --- ZendEngine2/zend_execute_API.c:1.331.2.6 Mon Dec 5 03:56:09 2005 +++ ZendEngine2/zend_execute_API.c Fri Dec 9 13:10:45 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.331.2.6 2005/12/05 08:56:09 dmitry Exp $ */ +/* $Id: zend_execute_API.c,v 1.331.2.7 2005/12/09 18:10:45 dmitry Exp $ */ #include <stdio.h> #include <signal.h> @@ -46,6 +46,7 @@ static WNDCLASS wc; static HWND timeout_window; static HANDLE timeout_thread_event; +static HANDLE timeout_thread_handle; static DWORD timeout_thread_id; static int timeout_thread_initialized=0; #endif @@ -1254,7 +1255,7 @@ void zend_init_timeout_thread() { timeout_thread_event = CreateEvent(NULL, FALSE, FALSE, NULL); - _beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0, &timeout_thread_id); + timeout_thread_handle = _beginthreadex(NULL, 0, timeout_thread_proc, NULL, 0, &timeout_thread_id); WaitForSingleObject(timeout_thread_event, INFINITE); } @@ -1265,6 +1266,10 @@ return; } PostThreadMessage(timeout_thread_id, WM_QUIT, 0, 0); + + /* Wait for thread termination */ + WaitForSingleObject(timeout_thread_handle, 5000); + CloseHandle(timeout_thread_handle); } #endif

« previous php.zend-engine.cvs (#4440) next »