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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/29/05, Andrew Brampton <andrew@xxxxxxxxxxxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux