From: jtucker at bsiweb dot com Operating system: Red Hat 9 PHP version: 4.3.3 PHP Bug Type: Date/time related Bug description: Date functions before 1970, after 2038
Description: ------------ Hi, We have a very troubling bug after upgrading Red Hat to 9.0 and PHP to 4.33. The problem is many of the date functions do not work with dates before 1970 or after 2038. This is a result of the posix standard set by glibc v2.3. The major problem with this is this makes much of existing PHP code broken. Red Hat 9 is dependent on this version of glibc, as well as many libraries associated with PHP. A solution has been provided with an adodb date library, but this breaks a large amount of existing scripts including the Pear libraries and many pre-existing applications. Many users choices are grim, either lock themselves into earlier versions of glibc, PHP, Linux, or be fored to update all their code to use the adodb function calls, along with every application upgrade and every update to Pear. I strongly feel that support for date functions with glibc 2.3 should be included in the next version of PHP. We can't all wait for PHP 5 to support this functionality. Thank you. Reproduce code: --------------- getdate() date() gmdate() mktime() gmmktime() strtotime() with any date before 1970 or after 2038 on a system compiled with glibc 2.3. -- Edit bug report at http://bugs.php.net/?id=25647&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25647&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25647&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25647&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25647&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25647&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25647&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25647&r=support Expected behavior: http://bugs.php.net/fix.php?id=25647&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25647&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25647&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25647&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25647&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25647&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25647&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25647&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25647&r=float