php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25557 File functions don't work on files > 2GB
Submitted: 2003-09-16 09:49 UTC Modified: 2003-10-03 13:22 UTC
From: rj at roos dot ws Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.3 OS: linux 2.4.21
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: rj at roos dot ws
New email:
PHP Version: OS:

 

 [2003-09-16 09:49 UTC] rj at roos dot ws
Description:
------------
When using stat() on files > 2GB, the size overflows the 32 bit int. 

Reproduce code:
---------------
stat("Any file > 2GB")

Expected result:
----------------
return the filesize of the file > 2GB.

Actual result:
--------------
An error=75, value too large for the underlying data-structure and using is_file the message: file does not exist.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-16 09:51 UTC] sniper@php.net
Really? Not bug.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Sep 07 09:00:01 2025 UTC