Home » Web Services » XML_RPC » Bug #3340
fread shouldn't grab 32k
Details
| Submitted | 2005-02-01 00:24 UTC |
|---|---|
| From | tac at smokescreen dot org |
| Assigned | danielc |
| Status | Closed |
| Package | XML_RPC |
| PHP Version | 5.0.3 |
| OS | all |
| Roadmaps | (Not assigned) |
Comments
[2005-02-01 00:24 UTC] tac at smokescreen dot org
Description:
------------
in function parseResponseFile($fp), line 1109 of RPC.php
$ipd = '';
while ($data = @fread($fp, 32768)) {
$ipd .= $data;
}
return $this->parseResponse($ipd);
I don't think 32k is the right number, I remember this causing a problem in PHP 4.3 release. 8192 I think is the right number for most systems, even more efficient is to check for file_get_contents and use it if it exists.