From: alan dot whitney at sephone dot com Operating system: Linux (Fedora Core 2) PHP version: 5.1.2 PHP Bug Type: Date/time related Bug description: strtotime fails to return null or false
Description: ------------ When you use strtotime on 1143522000 it returns a timestamp 6 years eariler. It seems to be if the string falls on the format HHMMSSYYYY and HH is above 10 and SS is above 37 it will parse it out to be the time in the string(HHMMSS), today's date and the year (YYYY) in the string. Reproduce code: --------------- $mktime = mktime(0,0,0, 3, 28, 2006); $return = strtotime($mktime); if ($return === false) { echo "Nothing"; } else { echo date("r", $return); } Expected result: ---------------- Nothing Actual result: -------------- Tue, 28 Mar 2000 11:43:52 -0500 -- Edit bug report at http://bugs.php.net/?id=36899&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36899&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36899&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36899&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36899&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36899&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36899&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36899&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36899&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36899&r=support Expected behavior: http://bugs.php.net/fix.php?id=36899&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36899&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36899&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36899&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36899&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36899&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36899&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36899&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36899&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36899&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36899&r=mysqlcfg