]> granicus.if.org Git - php/commitdiff
- Fixed bug #53297 (gettimeofday implementation in php/win32/time.c can return
authorGustavo André dos Santos Lopes <cataphract@php.net>
Fri, 12 Nov 2010 18:37:02 +0000 (18:37 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Fri, 12 Nov 2010 18:37:02 +0000 (18:37 +0000)
  1 million microsecs). (ped at 7gods dot org)
- Moved line out of order in NEWS.

NEWS
win32/time.c

diff --git a/NEWS b/NEWS
index 582aff8837f37d6faaba56fdf6e0be5c7361e548..9a380614ce0fa729d48e324a7f798833f4d8314b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -60,7 +60,8 @@
 - Fixed the filter extension accepting IPv4 octets with a leading 0 as that
   belongs to the unsupported "dotted octal" representation. (Gustavo)
 
-- Fixed bug #52693 (configuration file errors are not logged to stderr). (fat)
+- Fixed bug #53297 (gettimeofday implementation in php/win32/time.c can return
+  1 million microsecs). (ped at 7gods dot org)
 - Fixed bug #53279 (SplFileObject doesn't initialise default CSV escape
   character). (Adam)
 - Fixed bug #53273 (mb_strcut() returns garbage with the excessive length
   CASE-WHEN). (Andrey)
 - Fixed bug #52699 (PDO bindValue writes long int 32bit enum).
   (rein at basefarm dot no)
+- Fixed bug #52693 (configuration file errors are not logged to stderr). (fat)
 - Fixed bug #52686 (mysql_stmt_attr_[gs]et argument points to incorrect type).
   (rein at basefarm dot no)
 - Fixed bug #52681 (mb_send_mail() appends an extra MIME-Version header).
index 808ce8d5bd41326545d9df1e5dbfc6821d51ad74..a376fd61be0a0505982d1a60b9e869e2e05800ae 100644 (file)
@@ -105,7 +105,7 @@ PHPAPI int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Inf
                     dt = (double)timer/PW32G(freq);
                     time_Info->tv_sec = PW32G(starttime).tv_sec + (int)dt;
                     time_Info->tv_usec = PW32G(starttime).tv_usec + (int)((dt-(int)dt)*1000000);
-                    if (time_Info->tv_usec > 1000000) {
+                    if (time_Info->tv_usec >= 1000000) {
                         time_Info->tv_usec -= 1000000;
                         ++time_Info->tv_sec;
                     }