php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65268 select() implementation uses outdated tick API
Submitted: 2013-07-16 10:40 UTC Modified: 2013-07-16 10:40 UTC
From: [email protected] Assigned: ab (profile)
Status: Closed Package: Streams related
PHP Version: 5.5Git-2013-07-16 (Git) OS: windows
Private report: No CVE-ID: None
 [2013-07-16 10:40 UTC] [email protected]
Description:
------------
The implementation of php_select() in win32/select.c uses outdated function Get 
TickCount. From the documentation page http://msdn.microsoft.com/en-
us/library/ms724408(v=vs.85).aspx

"The elapsed time is stored as a DWORD value. Therefore, the time will wrap around 
to zero if the system is run continuously for 49.7 days. To avoid this problem, 
use the GetTickCount64 function. Otherwise, check for an overflow condition when 
comparing times."

This can be an issue for long running php processes. As 5.5 has not to support 
windows xp anymore, and as the documentation suggests, GetTickCount64 should be 
used.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-16 10:40 UTC] [email protected]
-Assigned To: +Assigned To: ab
 [2013-07-18 16:44 UTC] [email protected]
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=99afc6dc11016be47ce2ba09779ae4a34d435f5b
Log: Fixed bug #65268 select() implementation uses outdated tick API
 [2013-07-18 16:44 UTC] [email protected]
-Status: Assigned +Status: Closed
 [2013-11-17 09:30 UTC] [email protected]
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=99afc6dc11016be47ce2ba09779ae4a34d435f5b
Log: Fixed bug #65268 select() implementation uses outdated tick API
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Nov 03 11:00:02 2025 UTC