From:             resident at telcontar dot net
Operating system: Linux
PHP version:      4.3.3
PHP Bug Type:     Date/time related
Bug description:  strtotime returning invalid timestamp

Description:
------------
I realise you've been making changes to strtotime() in PHP (I'm in Mac OS
9.1 - can't run a CVS copy), but you may still want to check to see what
the new version makes of date strings with no day specified (someone tried
to use such a string on my site) - I'm getting a timestamp from an
unrelated day several years into the future. See the code specified.

Reproduce code:
---------------
echo strtotime("Oct 2001");

Expected result:
----------------
Not sure. Either -1, or the timestamp for 1st October 2001 - probably the
latter.

Actual result:
--------------
1237737600

this gives:
07:16 am: *** Unix time "1237737600": Sunday, March 22, 2009 @ 04:00:00 pm

-- 
Edit bug report at http://bugs.php.net/?id=26198&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26198&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26198&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26198&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26198&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26198&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26198&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26198&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26198&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26198&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26198&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26198&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26198&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26198&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26198&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26198&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26198&r=float

Reply via email to