PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » XML_RPC » Bug #3340

fread shouldn't grab 32k

Details

Submitted2005-02-01 00:24 UTC
Fromtac at smokescreen dot org
Assigneddanielc
StatusClosed
PackageXML_RPC
PHP Version5.0.3
OSall
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.