From:             jaitropfaim at hotmail dot com
Operating system: ALL
PHP version:      5.0.5
PHP Bug Type:     Filesystem function related
Bug description:  fopen doesn't work on files >2GB

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 bug report at http://bugs.php.net/?id=34485&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34485&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34485&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34485&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34485&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34485&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34485&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34485&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34485&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34485&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34485&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34485&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34485&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34485&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34485&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34485&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34485&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34485&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34485&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34485&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34485&r=mysqlcfg

Reply via email to