Bug #6114: microtime function error

From: Date: Sat, 12 Aug 2000 02:41:20 +0000
Subject: Bug #6114: microtime function error
Groups: php.dev 
Request: Send a blank email to php-dev+get-28614@lists.php.net to get a copy of this message
From: f.labanvoye@cg70.fr Operating system: WinNT 4 sp6a / apache 1.3.12 PHP version: 3.0.16 PHP Bug Type: Other Bug description: microtime function error <? 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.

« previous php.dev (#28614) next »