|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57592 Time drifting and time_start being reset
Submitted: 2007-03-27 09:51 UTC Modified: 2007-07-17 05:15 UTC
From: chrisdunavant at vt dot edu Assigned:
Status: Closed Package: uploadprogress (PECL)
PHP Version: 5.2.1 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chrisdunavant at vt dot edu
New email:
PHP Version: OS:


 [2007-03-27 09:51 UTC] chrisdunavant at vt dot edu
This is not really a bug with the software but more of a server issue, but a change in the code may alleviate the problem with the server.

Installed uploadprogress on a Gentoo Linux server hosted on a virtual machine.  The server appears to be having some "time drift" issues where the current time is .01 microseconds less than the "last time" at random points.  This time drift is causing the uploadprogress to miscalculate the "est_sec" left for the download because it continually "resets" the "time_start" to the current time because it checks for fractures in time.  There appears to be a fix for this but I'm unsure if the "fix" may cause other problems.  The fix would mean changing line 147 of uploadprogress.c.


progress->time_start = progress->time_last = crtime; 


progress->time_last = crtime;

I hope this is helpful.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-17 05:15 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC