From: dverspui at hotpop dot com Operating system: Linux (Fedora 2) PHP version: 5.1.0RC1 PHP Bug Type: Date/time related Bug description: strtotime("<Day>",<time>) output differs from earlier PHP5 versions
Description: ------------ strtotime("<day>",<time>) returns the specified day of the next week of <time> if <time> itself is on day <day>. Reproduce code: --------------- print date("Ymd",strtotime(date("l",time()),time())); Expected result: ---------------- Output should be the date of today, but on my installation it returns the date of 7 days ahead. This differs from all earlier PHP versions. -- Edit bug report at http://bugs.php.net/?id=34874&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34874&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34874&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34874&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34874&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34874&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34874&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34874&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34874&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34874&r=support Expected behavior: http://bugs.php.net/fix.php?id=34874&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34874&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34874&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34874&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34874&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34874&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34874&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34874&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34874&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34874&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34874&r=mysqlcfg