From: osmium at 163 dot com Operating system: Windows Server 2003 PHP version: 5.1.0b3 PHP Bug Type: Date/time related Bug description: strtotime() does not work with date format "Y/m/d"
Description: ------------ I got nothing on the first line but a number "1123804800" on the second line. Maybe format "Y/m/d" is not supported by strtotime(). However, I got two numbers in v5.0.3 Reproduce code: --------------- <?php echo "Y/m/d: ", strtotime("2005/8/12"), "<br>"; echo "Y-m-d: ", strtotime("2005-8-12"); ?> Expected result: ---------------- Y/m/d: 1123804800 Y-m-d: 1123804800 Actual result: -------------- Y/m/d: Y-m-d: 1123804800 -- Edit bug report at http://bugs.php.net/?id=34087&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34087&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34087&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34087&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34087&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34087&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34087&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34087&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34087&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34087&r=support Expected behavior: http://bugs.php.net/fix.php?id=34087&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34087&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34087&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34087&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34087&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34087&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34087&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34087&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34087&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34087&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34087&r=mysqlcfg