Re: Bug #10482 Updated: if the filesize if more than 2GB, filesystem functions do not seem to recognize
| From: | Jani Taskinen | Date: | Mon, 29 Oct 2001 10:15:36 +0000 |
| Subject: | Re: Bug #10482 Updated: if the filesize if more than 2GB, filesystem functions do not seem to recognize | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69271@lists.php.net to get a copy of this message | ||
Good to know that someone reads these report updates. :)
Anyways, this was my tiny mistaak..I should sleep now.
And like Derick already mentioned PHP does not support very big numbers.
--Jani
p.s. Someone with enough energy..feel free to update the report
with some better explanation. :)
On Mon, 29 Oct 2001, Markus Fischer wrote:
>Wait, not so fast. He says the file *is* bigger than 2GB so his
>FS seems to support it. It may be that PHP has to be rccompiled
>with the proper setting to it recognized the 64bit fileaccess
>fucntion. What do you think?
>
>- Markus
>
>On Mon, Oct 29, 2001 at 07:47:21AM -0000, sniper@php.net wrote :
>> ID: 10482
>> Updated by: sniper
>> Reported By: gopinath@kasenna.com
>> Old Status: Open
>> Status: Bogus
>> Bug Type: Filesystem function related
>> Operating System: redhat 7.1
>> PHP Version: 4.0.4pl1
>> New Comment:
>>
>> 32 bit=2GB limitation in the ext2 for files.
>> Not a PHP problem.
>>
>> --Jani
>>
>>
>>
>> Previous Comments:
>> ------------------------------------------------------------------------
>>
>> [2001-04-24 20:14:21] gopinath@kasenna.com
>>
>>
>>
>> $folder = dir(.);
>> $folder->rewind() ;
>> clearstacache();
>> while ($file=$folder->read()) {
>> if (is_dir ($file)) {
>> do_some thing.......
>> }
>> elif (is_file($file)) {
>> do_somethingelse.....
>> }
>> ......
>> .....
>> }
>>
>> is_file() call in the above code does not return ture if the file size is > 2GB.
>>
>> I was able to print $file, just inside the loop (meaning the folder object has the file in
>> the filelist
>> and hence it is the is_file() which is filtering it out.
>> I tried other functions like file_exists(), is_readable() etc in place of is_file() without
>> any success.
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>> Edit this bug report at
>> http://bugs.php.net/?id=10482&edit=1
>>
>>
>> --
>> PHP Development Mailing List <http://www.php.net/>
>> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-dev-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>