Bug 155916 - PHP Bug 32553 : PHP_STREAM_COPY_ALL set to 2000000
PHP Bug 32553 : PHP_STREAM_COPY_ALL set to 2000000
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-04-25 14:09 EDT by Remi COLLET
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 5.0.4-9
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-10 09:39:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch proposal. (611 bytes, patch)
2005-04-25 14:09 EDT, Remi COLLET
no flags Details | Diff

  None (edit)
Description Remi COLLET 2005-04-25 14:09:12 EDT
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:

Steps to Reproduce:
1. using fpasthru on a file larger than 2000000 bytes
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)
Comment 1 Remi COLLET 2005-04-25 14:09:12 EDT
Created attachment 113644 [details]
Patch proposal.
Comment 2 Joe Orton 2005-05-06 06:18:19 EDT
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?
Comment 3 Remi COLLET 2005-05-06 13:04:09 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.