Defect #36
Support Content-Encoding: chunked
| Status: | New | Start: | 2008-03-01 | |
| Priority: | High | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | HTTP | |||
| Target version: | 1.3 | |||
| Affected Version: | 1.1.3 |
PHP Version: | 5.2.0 |
|
| mbstring enabled: | No |
iconv enabled: | No |
|
| cURL enabled: | No |
zlib enabled: | No |
|
Description
When using Pie with force_fsockopen(true) certain feeds, which are parsed correctly if cURL is used, fail to parse and generate an XML Empty Document Line1 Column 1 notice.
Example of feed that fails with fsockopen : http://www.aldi.co.uk/wineblog/?feed=rss2
Basic debugging show the following:
SimplePie->init() returns false, because
if ($parser->parse($utf8_data, 'UTF-8')) returns false.
In SimplePie_Parser->parse(), its failing on the statement
if (!xml_parse($xml, $data, true))
The xml_error_code is set to 4 which is the constant
XML_ERROR_INVALID_TOKEN.
COMPATIBILITY TEST:
PHP¹ 5.2.0
XML Enabled
PCRE² Enabled
cURL Enabled
Zlib Enabled
mbstring Enabled
iconv Enabled
Platform:
Windows XP
SIMPLEPIE_VERSION 1.1
SIMPLEPIE_BUILD 20080102221556
History
Updated by Geoffrey Sneddon 780 days ago
- Category set to HTTP
- Status changed from Unconfirmed to New
- Target version set to 1.2
- Affected Version changed from 1.1 to 1.1.1
- mbstring enabled set to No
- iconv enabled set to No
- cURL enabled set to No
- zlib enabled set to No
And our lack of support of Content-Encoding: chunked bites again.
Updated by Geoffrey Sneddon 660 days ago
- Subject changed from XML Empty Document - fsockopen only to Support Content-Encoding: chunked
Updated by Geoffrey Sneddon 660 days ago
- Priority changed from Medium to High
Updated by Geoffrey Sneddon 620 days ago
- Affected Version changed from 1.1.1 to 1.1.2
Updated by Geoffrey Sneddon 586 days ago
- Affected Version changed from 1.1.2 to 1.1.3
Updated by Geoffrey Sneddon 429 days ago
- Target version changed from 1.2 to 1.3