#19783 [Opn]: A big problem with fread() with PHP4.3.0
ID: 19783
Updated by: nicos@php.net
Reported By: nicos@php.net
Status: Open
Bug Type: Filesystem function related
Operating System: FreeBSD4.5
PHP Version: 4CVS-2002-10-06
New Comment:
This bug looks really important.
I dont know if it is because of the new handling of streams but I just
verified that its working with PHP4.2.3 and not wit h 4_3 latest.
Previous Comments:
------------------------------------------------------------------------
[2002-10-06 14:14:32] nicos@php.net
on some of my code I use the following:
$fd=fopen($filename,"rb");
echo fread($fd,filesize($filename));
fclose($fd);
It looks fread is limited to a certain value. I can't get more than a
certain size. With bigs files, I dont get all of them but just a part
so I had to use fgets.
Can someone check if something changed on the fread()'s function that
would limit it?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19783&edit=1
Thread (9 messages)