#46732 [NEW]: mktime.year description is wrong

From: Date: Tue, 02 Dec 2008 16:27:08 +0000
Subject: #46732 [NEW]: mktime.year description is wrong
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1577@lists.php.net to get a copy of this message
From: dynkin at gmail dot com Operating system: linux PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: mktime.year description is wrong Description: ------------ Documentation of mktime's year parameter states that > The number of the year, may be a two or four digit value, > with values between 0-69 mapping to 2000-2069 and > 70-100 to 1970-2000. But this part, 70-100 to 1970-2000, is not precise. As in the implementation in ext/date/php_date.c::php_mktime, the doc should read: "70-110 to 1970-2010", instead of, "70-100 to 1970-2000". Reproduce code: --------------- echo date("Y-m-d", mktime(0,0,0,1,1,110)); Actual result: -------------- 2010-01-01 -- Edit bug report at http://bugs.php.net/?id=46732&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46732&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46732&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46732&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46732&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46732&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46732&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46732&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46732&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46732&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46732&r=support Expected behavior: http://bugs.php.net/fix.php?id=46732&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46732&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46732&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46732&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46732&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46732&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46732&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46732&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46732&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46732&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46732&r=mysqlcfg

« previous php.doc.bugs (#1577) next »