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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 + 31 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC