php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10482 if the filesize if more than 2GB, filesystem functions do not seem to recognize
Submitted: 2001-04-24 20:14 UTC Modified: 2001-10-29 02:47 UTC
From: gopinath at kasenna dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: redhat 7.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gopinath at kasenna dot com
New email:
PHP Version: OS:

 

 [2001-04-24 20:14 UTC] gopinath at kasenna dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-29 02:47 UTC] sniper@php.net
32 bit=2GB limitation in the ext2 for files.
Not a PHP problem.

--Jani


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC