Re: PHP 4.0 Bug #4968 Updated: microtime() does not work properly

From: Date: Mon, 18 Dec 2000 15:13:02 +0000
Subject: Re: PHP 4.0 Bug #4968 Updated: microtime() does not work properly
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-41751@lists.php.net to get a copy of this message
Tested on NT 5 SP 1 Apache 1.3.15-dev / DSO PHP 4.0.5-dev from 13.12.2000. It still exists. At 17:46 17.12. 2000, sniper@php.net wrote the following: -------------------------------------------------------------- >ID: 4968 >Updated by: sniper >Reported By: waldschrott@kiffen.de >Status: Analyzed >Old-Bug Type: *General Issues >Bug Type: Date/time related >Assigned To: >Comments: > > > >Previous Comments: >--------------------------------------------------------------------------- > >[2000-09-13 21:41:24] dbeu@php.net >i failed to reproduce this with php 4.0.2. >does this problem still exist? > >--------------------------------------------------------------------------- > >[2000-08-01 23:49:44] waldschrott@php.net >wow, It still doesn´t work and crashes after a while > >--------------------------------------------------------------------------- > >[2000-06-12 04:33:23] waldschrott@kiffen.de >is microtime() supposed not to work under win32? If it is, there´s a serious bug in it. The >following script works as intended (it produces no lines with an *) running on Linux - the same >script under win32 fails at some points (search for "*" and exampine the values around >it)... > >microtime() *seems* to work under win32, it produces a string with a micro and a timestamp part, >subsequent values are raising compared to the ancestor in the micro part - the timestamp part seems >*not* to be incremented after the micro part exceeds 0,9(period), it is incremented from time to >time - I even don´t know when, perhaps every fourth pass... > >If it is not intended to work under win32 a warning should appear OR it should be implemented if >possible... > > ><? >for ($i=1;$i<=10000;$i++) { >list($micro,$time)=explode(" ",microtime()); >$add=$micro+$time; >print ($last? ($add<$last ? '*' : '') : >'')."Mt$microtTt$timetSt$ add<BR>"; >$last=$add; } >?> > >--------------------------------------------------------------------------- > > >Full Bug description available at: http://bugs.php.net/?id=4968 > > >-- >PHP Development Mailing List <http://www.php.net/> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net >For additional commands, e-mail: php-dev-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz ICQ: 2808 2505

« previous php.dev (#41751) next »