php.net |  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
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: jaitropfaim at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-09-12 23:57 UTC] jaitropfaim at hotmail dot com
Description:
------------
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:
error_reporting(E_ALL);
$fp=fopen($filename);

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 />


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-12 23:59 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC