ZF-5794: Zend_Feed_Rss Feedburner
Description
Hi,
I'm trying to import a feed from FeedBurner with Zend_Feed_Rss and i'm getting following error: Invalid chunk size "" unable to read chunked body
Valid Feed: http://validator.w3.org/feed/check.cgi/…
$channel = new Zend_Feed_Rss('http://feeds.feedburner.com/dso-nieuws-binnenland');
Error
Zend_Http_Client_Adapter_Exception Object
(
[message:protected] => Invalid chunk size "" unable to read chunked body
[string:private] =>
[code:protected] => 0
[file:protected] => /home/httpd/XX/library/Zend-1.7.4/Http/Client/Adapter/Socket.php
[line:protected] => 257
[trace:private] => Array
(
[0] => Array
(
[file] => /home/httpd/XX/library/Zend-1.7.4/Http/Client.php
[line] => 845
[function] => read
[class] => Zend_Http_Client_Adapter_Socket
[type] => ->
[args] => Array
(
)
)
[1] => Array
(
[file] => /home/httpd/XX/library/Zend-1.7.4/Feed/Abstract.php
[line] => 78
[function] => request
[class] => Zend_Http_Client
[type] => ->
[args] => Array
(
[0] => GET
)
)
Comments
Posted by yury krikun (yury krikun) on 2009-02-22T14:28:35.000+0000
Bug cause is incorrect string functions working on multibyte strings. In my case bug was reproduced on three conditions 1. mbstring overloading parameter = 2 2. importing rss feed have "Transfer-Encoding: chunked" header. 3 and encoding of importing rss feed is UTF-8
Hotfix for this bug is using mb_ functions for parsing chunked content; That is in my case (im using ZF 1.7.0):
file Zend/Http/Client/Adapter/Socket.php from line 266 and below
file Zend/Http/Response.php from line 554 and below:
enjoy it and good luck!
Posted by Ryan Mauger (bittarman) on 2010-11-20T05:55:41.000+0000
Tested with 1.11dev, and appears to no longer be an issue.