Re: Achieving 64-bit integers on 32-bit platforms

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

 



Hello,

on 06/30/2005 01:02 AM Dan Goodes said the following:
Hi Folks

This 32-bit limitation is haunting me everywhere I turn.

Is it possible with PHP (at compile-time if need be) to make it use large
(64-bit) integers?

I'm asking because I would like to perform operations on large files, and

fillesize($filename)

is returning an error, even when I use

sprintf("%u", filesize($file))

as per the manual for filesize(). I get:

Warning: filesize(): Stat failed for FC4-i386-DVD.iso (errno=75 - Value too large for defined data type)

Any thoughts/ideas/suggestions? Thanks!

No, PHP is not capable of handing files larger than 2GB. You want to file a bug report because other program can handle large files in 32 bit OS.

http://bugs.php.net/

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
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