From: ickmund at gmail dot com Operating system: 2.6.15-1.1831_FC4 PHP version: 5.2.6 PHP Bug Type: Date/time related Bug description: Changed behaviour of strtotime
Description: ------------ In earlier versions (5.0.4 tested) strtotime("080630") would work as if the input was formatted as "ymd". Tested in 5.2.6, it is formatted as "His". Bug or not, it has changed and no documentation can be found? PHP 5.2.6 php -r "echo date('Y-m-d H:i:s', strtotime('080630'));" 2008-05-28 08:06:30 PHP 5.0.4 php -r "echo date('Y-m-d H:i:s', strtotime('080630'));" 2008-06-30 00:00:00 Reproduce code: --------------- php -r "echo date('Y-m-d H:i:s', strtotime('080630'));" Expected result: ---------------- 2008-06-30 00:00:00 Actual result: -------------- 2008-05-28 08:06:30 -- Edit bug report at http://bugs.php.net/?id=45116&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45116&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45116&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45116&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45116&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45116&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45116&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45116&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45116&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45116&r=support Expected behavior: http://bugs.php.net/fix.php?id=45116&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45116&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45116&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45116&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45116&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45116&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45116&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45116&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45116&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45116&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45116&r=mysqlcfg