#34485 [Opn->Bgs]: fopen doesn't work on files >2GB
| From: | sniper@php.net | Date: | Mon, 12 Sep 2005 21:59:07 +0000 |
| Subject: | #34485 [Opn->Bgs]: fopen doesn't work on files >2GB | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84964@lists.php.net to get a copy of this message | ||
ID: 34485
Updated by: sniper@php.net
Reported By: jaitropfaim at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: ALL
PHP Version: 5.0.5
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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