Bug #2415: filectime reports wrong time after Sep 1999. Possible overflow

From: Date: Fri, 01 Oct 1999 04:38:21 +0000
Subject: Bug #2415: filectime reports wrong time after Sep 1999. Possible overflow
Groups: php.dev 
Request: Send a blank email to php-dev+get-11405@lists.php.net to get a copy of this message
From: signal11@mediaone.net Operating system: Linux/Redhat 6.0 PHP version: 3.0.9 PHP Bug Type: Misbehaving function Bug description: filectime reports wrong time after Sep 1999. Possible overflow <?php $mod_time=date("D M d, Y",filectime("/home/httpd/html/" . $PHP_SELF)); echo "<FONT COLOR=\"#BBBBBB\">Last modified: $mod_time</FONT>\n"; ?> Above is the offending code. When passed the below file, it prints: Last modified: Wed Dec 31, 1969" -rw-r--r-- 1 bojay users 1954 Sep 30 23:22 index.php3 Changing the filesize or timestamp past about Sep 29 doesn't seem to do anything - it's permanently locked at Dec 31, 1969. It's anybody's guess why.. but I suspect somebody didn't allocate enough bytes for the epoch value (If memory serves, it's an unsigned long double) and now it's bit them in the ass. :\ Just so you are sure it isn't my system: 23:37:32 vortex:~$ ssh bofh "date" Thu Sep 30 23:37:38 CDT 1999

« previous php.dev (#11405) next »