From: pkus at epf dot pl Operating system: windows xp PHP version: 5.2.0 PHP Bug Type: *General Issues Bug description: date('W') returns wrong week number for some dates
Description: ------------ bug was reported earlier and closed Bug #33957 gmdate('W')/date('W') sometimes returns wrong week number. Reproduce code: --------------- print_r(date('W', mktime(0,0,0,12,31,2007))); //returns 01 but should return 53 Expected result: ---------------- //returns 01 but should return 53 Actual result: -------------- 01 -- Edit bug report at http://bugs.php.net/?id=39912&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39912&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39912&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39912&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39912&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39912&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39912&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39912&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39912&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39912&r=support Expected behavior: http://bugs.php.net/fix.php?id=39912&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39912&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39912&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39912&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39912&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39912&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39912&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39912&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39912&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39912&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39912&r=mysqlcfg