From: info at alt dot lt
Operating system: debian woody (latest stable upd)
PHP version: 4.3.6
PHP Bug Type: Unknown/Other Function
Bug description: strftime prints incorret month, when directed to print only month
Description:
------------
strftime prints incorret (decreased by one) month, when directed to print
only month.
Reproduce code:
---------------
<?
$month=12;
$year=2004;
$day=15;
$dat=strftime("%B",mktime(0,0,0,$month,0,0));
echo $dat,"<br>";
$dat1=strftime("%Y %B %d ",mktime(0,0,0,$month,$day,$year));
echo $dat1,"<br>";
?>
Expected result:
----------------
Result is self explaining:
November
2004 December 15
--
Edit bug report at http://bugs.php.net/?id=28281&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28281&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28281&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28281&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28281&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28281&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28281&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28281&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28281&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28281&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28281&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28281&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28281&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28281&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28281&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28281&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28281&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28281&r=float