Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.5

Bug #3340 fread shouldn't grab 32k
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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 48 - 1 = ?

 
 [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.

Comments

 [2005-02-22 06:17 UTC] danielc
Changed in CVS.