|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34485 fopen doesn't work on files >2GB
Submitted: 2005-09-12 23:57 UTC Modified: 2005-09-13 19:28 UTC
From: jaitropfaim at hotmail dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.0.5 OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jaitropfaim at hotmail dot com
New email:
PHP Version: OS:


 [2005-09-12 23:57 UTC] jaitropfaim at hotmail dot com
I wanted to open a 4GB file and it didn't work...
A bit more testing showed, that PHP is NOT capable of opening files >2GB!

This problem also occurs on PHP4!

Reproduce code:
1. Create a file that is BIGGER THAN 2GB!
2. And then:

Expected result:
PHP should open the damn file! *g* ;-)

Actual result:
<br />
<b>Warning</b>:  fopen(./backup_1126490350.tar.gz): failed to open stream: File too large in <b>/root/backup/fopentest.php</b> on line <b>30</b><br />


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-12 23:59 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

 [2005-09-13 19:28 UTC] jaitropfaim at hotmail dot com
Okay, sorry for this submission...
I just wasn't sure...
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jan 24 01:01:23 2021 UTC