#48140 [NEW]: the range of the strtotime function not clear

From: Date: Mon, 04 May 2009 03:19:46 +0000
Subject: #48140 [NEW]: the range of the strtotime function not clear
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2192@lists.php.net to get a copy of this message
From: danial dot xd dot lu at gmail dot com Operating system: Windows XP SP2 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: the range of the strtotime function not clear Description: ------------ The page about strtotime function in manual mentioned that the date in two digital format 00-69 will in charge as 2000-2069, it seems that the function support the date in 2069 year, but in fact, the range of the function support is in charge of the hardware, in 32 bit system, it only support date from 1901-12-13 20:45:52 to 2038-01-19 03:14:07, because the range of int is -2147483648 to 2147483647, if you use the date later than 2038-01-19 03:14:07, it will always return flase. Reproduce code: --------------- --- From manual page: function.strtotime --- Expected result: ---------------- Please add some comments about the range of the date support for the function. Some of the comments makes confused. Actual result: -------------- Not mentioned the range of the date the function supported. -- Edit bug report at http://bugs.php.net/?id=48140&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48140&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48140&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48140&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48140&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48140&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48140&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48140&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48140&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48140&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48140&r=support Expected behavior: http://bugs.php.net/fix.php?id=48140&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48140&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48140&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48140&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48140&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48140&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48140&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48140&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48140&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48140&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48140&r=mysqlcfg

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