ID:               19783
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Closed
+Status:           Open
 Bug Type:         Filesystem function related
-Operating System: FreeBSD4.5
+Operating System: WindowsNT/XP/2000/9x
 PHP Version:      4CVS-2002-10-06
 New Comment:

Reopened this bug.

readfile() on 4.0, 4.2.4-dev and latest CVS-snapshot (13-Oct-2002
03:27) won't work with large files in Windows.

Even
$ptfp=fopen($ipoc_passthru_fn,"rb");
        while(!feof($ptfp))
        {
        print fread($ptfp,4096);
        }
        fclose($ptfp);
won't work.

Files <100k work fine, larger don't.

This error is reproductive on various computers with different
Windows-Systems and occurs while trying to pass through PDF-files.


Previous Comments:
------------------------------------------------------------------------

[2002-10-06 20:56:44] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

------------------------------------------------------------------------

[2002-10-06 20:28:21] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[2002-10-06 14:14:32] [EMAIL PROTECTED]

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

Reply via email to