#28168 [Opn->Bgs]: gzip support broken?
| From: | iliaa@php.net | Date: | Thu, 29 Apr 2004 13:27:04 +0000 |
| Subject: | #28168 [Opn->Bgs]: gzip support broken? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58996@lists.php.net to get a copy of this message | ||
ID: 28168
Updated by: iliaa@php.net
Reported By: dac514 at sympatico dot ca
-Status: Open
+Status: Bogus
Bug Type: cURL related
Operating System: Widndows 2000
PHP Version: 4.3.6
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
This is likely to be a bug in the cURL library. The PHP
interface to the library had no changes that would cause
this bug.
Previous Comments:
------------------------------------------------------------------------
[2004-04-26 20:44:31] dac514 at sympatico dot ca
Description:
------------
The following code used to work until i upgraded to 4.3.6
Reproduce code:
---------------
// Get RSS feed
$c =
curl_init('http://www.vegguide.org/rss/feed.rss?all=1&omit_hours=1');
curl_setopt($c, CURLOPT_ENCODING, 'gzip');
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
// *** This next line is the problem! ***
$data = curl_exec($c);
curl_close($c);
Expected result:
----------------
$data should be text. xml_parse($xml, $data) should be able to handle
it.
Actual result:
--------------
$data is compressed gzip binaray data. I can't use it in this format.
What changed?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28168&edit=1