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 : 3 + 41 = ?

 
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!