|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27765 is_dir on large file make an error
Submitted: 2004-03-29 17:59 UTC Modified: 2004-10-18 10:53 UTC
From: chris at root dot pl Assigned:
Status: Not a bug Package: Directory function related
PHP Version: 4.3.4 OS: Linux 2.4.25 SMP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: chris at root dot pl
New email:
PHP Version: OS:


 [2004-03-29 17:59 UTC] chris at root dot pl
when I make is_dir function of file which has about 4gb (DVD ISO), then PHP makes an error:

Warning: is_dir(): Stat failed for /var/ftp/public/filest_dvd.iso (errno=75 - Value too large for defined data type) in /var/htdocs/html/akacjenet/include/addons/ on line 17

Reproduce code:
it doesn't matter

Expected result:
i want to know is that file is a file or a directory... I have a small script for catalogue ftp content into mysql database

Actual result:
Warning: is_dir(): Stat failed for /var/ftp/public/filest_dvd.iso (errno=75 - Value too large for defined data type) in /var/htdocs/html/akacjenet/include/addons/ on line 17


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-30 08:41 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Your libc cannot handle files that big and throws the error 
you are seeing. This is not a PHP bug. 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 03:01:29 2023 UTC