Red Hat Bugzilla – Bug 155916
PHP Bug 32553 : PHP_STREAM_COPY_ALL set to 2000000
Last modified: 2007-11-30 17:11:04 EST
Description of problem:
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)
Steps to Reproduce:
1. using fpasthru on a file larger than 2000000 bytes
A file of 2000000 bytes extacly
The same file as the source one.
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]
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.