From: javier at evaloportunidades dot insp dot mx Operating system: Debian GNU/Linux 3.0 2.6.7 PHP version: 5.0.0 PHP Bug Type: *General Issues Bug description: strtotime error
Description: ------------ We use the strtotime function to get a value that is used as primary key on a database table. But with PHP 5.0.0 the strtotime function is returning duplicate values. Here is the configure line: ------- './configure' '--disable-cli' '--disable-cgi' '--without-pear' '--without-mysql' '--with-pgsql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-memory-limit' ------- With PHP 4 we didn't face this problem. Cheers, Javier Reproduce code: --------------- <?php for ($i=0;$i<10;$i++) { $aux = strtotime("now"); echo $aux ."<br>"; } ?> Actual result: -------------- 1091768400 1091768400 1091768400 1091768400 1091768400 1091768400 1091768400 1091768400 1091768400 1091768400 -- Edit bug report at http://bugs.php.net/?id=29557&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29557&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29557&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29557&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29557&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29557&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29557&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29557&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29557&r=support Expected behavior: http://bugs.php.net/fix.php?id=29557&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29557&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29557&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29557&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29557&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29557&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29557&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29557&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29557&r=float