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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Fri Jan 28 19:03:44 2022 UTC