ID:               36899
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alan dot whitney at sephone dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Date/time related
 Operating System: Linux (Fedora Core 2)
 PHP Version:      5.1.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip

Can't reproduce.


Previous Comments:
------------------------------------------------------------------------

[2006-03-28 23:33:15] alan dot whitney at sephone dot com

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 this bug report at http://bugs.php.net/?id=36899&edit=1

Reply via email to