Re: Warning: filemtime() (errno=75 - Value too large for defined data type)

From: Date: Mon, 30 May 2005 03:08:14 +0000
Subject: Re: Warning: filemtime() (errno=75 - Value too large for defined data type)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-215977@lists.php.net to get a copy of this message
On 5/29/05, Andrew Brampton <andrew@bramp.freeserve.co.uk> wrote: > Warning: filemtime(): Stat failed for master.log (errno=75 - Value too large > for defined data type) in test.php on line 5 > > when I do the following line of code: > filemtime ('master.log'); > My code was working fine until the file reached 2GB. > P.S I'm running PHP 4.3.10-13 on a Debian distro. I'm afraid you have two options: either shell out to the 'stat' command line tool, or recompile the PHP package. You can 'apt-get source php' and manually edit debian/rules to add the "-D_LARGE_FILE_OFFSET=64" looking argument to configure, then just 'dpkg-buildpackage -uc -us' it (or debian/rules binary). There is a bug report against PHP pertaining to this, but it breaks something in one of the other modules that I can't recall off the top of my head. I'm thinking it's related to Apache PAM, but that may be something different ... regards, Chris

« previous php.general (#215977) next »