|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6114 microtime function error
Submitted: 2000-08-11 22:41 UTC Modified: 2005-03-31 16:13 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: f dot labanvoye at cg70 dot fr Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.16 OS: WinNT 4 sp6a / apache 1.3.12
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: f dot labanvoye at cg70 dot fr
New email:
PHP Version: OS:


 [2000-08-11 22:41 UTC] f dot labanvoye at cg70 dot fr

function getmicrotime()
  $mtime = microtime();
  $mtime2 = explode(" ",$mtime);
  $mtime3 = $mtime2[1] + $mtime2[0];
  return ($mtime3);

$debut = getmicrotime();
echo $debut . "<BR>";

echo "hello word!!!!";
$fin = getmicrotime();
echo $fin . "<BR>";

echo $fin - $debut;

Under linux Redhat/apache1.3.12 , it's works fine. Under NT4, sometime, $fin is less than $debut.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC