Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: See http://bugs.php.net/bug.php?id=32553 This bug is really a problem as PHP cannot read file larger than 2000000 bytes. Version-Release number of selected component (if applicable): php-5.0.4-6 from rawhide (since php-5.0.3) How reproducible: Always Steps to Reproduce: 1. using fpasthru on a file larger than 2000000 bytes 2. 3. Actual results: A file of 2000000 bytes extacly Expected results: The same file as the source one. Additional info: We can wait for php-5.0.5 (as this bug has been fixed in CVS) or use a very small/simple patch (see attachment)
Created attachment 113644 [details] Patch proposal.
Keeping the old #define commented out with // is not necessary; I just changed it in-place. Can you test 5.0.4-9 in Raw Hide?
This "very" simple tests are ok... php -r 'fpassthru(fopen("/usr/bin/mplayer","rb"));'"));'>/tmp/mp1 php -r 'readfile("/usr/bin/mplayer");'>/tmp/mp2 File /usr/bin/mplayer, /tmp/mp1 and /tmp/mp2 are the identical. Thanks