php.net |  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
Votes:1
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

Patches

Pull Requests

History

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: Sat Dec 21 16:01:28 2024 UTC