From: peter at peterbengtson dot com Operating system: Mac OS X 10.3 PHP version: 5.0.0 PHP Bug Type: Date/time related Bug description: strtotime('now') has changed behaviour in PHP5
Description: ------------ strtotime('now') seems to return a different result in PHP5 than in PHP4. It used to return the current timestamp, but in PHP5 it seems to return the a timestamp representing the current date at 00:00:00. Thus it is now necessary to check explicitly for 'now' and substitute it with the value of time(). The documentation link does not explain this change in behaviour, unfortunately. -- Edit bug report at http://bugs.php.net/?id=29759&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29759&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29759&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29759&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29759&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29759&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29759&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29759&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29759&r=support Expected behavior: http://bugs.php.net/fix.php?id=29759&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29759&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29759&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29759&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29759&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29759&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29759&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29759&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29759&r=float