From:             dirk dot pommerencke at moeller dot co dot uk
Operating system: XP SP2
PHP version:      5.2.5
PHP Bug Type:     Date/time related
Bug description:  strtodate()

Description:
------------
It is the 31 March 2008 and with the code shown I am getting bizarre
results.
I am expecting to land into April, but jumping into May instead.

I have worked around the problem, but this smells like a nasty bug.



Reproduce code:
---------------
$run_date = time();

echo date( "F d Y", strtotime( "+1 month", $run_date ));


Actual result:
--------------
>"C:\php5.2.4\php" -f "C:\progs\coois_to_excel\coois_to_excel.php"
May 01 2008>Exit code: 0

-- 
Edit bug report at http://bugs.php.net/?id=44577&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44577&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44577&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44577&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44577&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44577&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44577&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44577&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44577&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44577&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44577&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44577&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44577&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44577&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44577&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44577&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44577&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44577&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44577&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44577&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44577&r=mysqlcfg

Reply via email to