#34485 [Bgs]: fopen doesn't work on files >2GB
| From: | jaitropfaim at hotmail dot com | Date: | Tue, 13 Sep 2005 17:28:35 +0000 |
| Subject: | #34485 [Bgs]: fopen doesn't work on files >2GB | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84998@lists.php.net to get a copy of this message | ||
ID: 34485
User updated by: jaitropfaim at hotmail dot com
Reported By: jaitropfaim at hotmail dot com
Status: Bogus
Bug Type: Filesystem function related
Operating System: ALL
PHP Version: 5.0.5
New Comment:
Okay, sorry for this submission...
I just wasn't sure...
Previous Comments:
------------------------------------------------------------------------
[2005-09-12 23:59:06] 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-12 23:57:28] 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 />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34485&edit=1