|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28168 gzip support broken?
Submitted: 2004-04-26 20:44 UTC Modified: 2004-04-29 15:27 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dac514 at sympatico dot ca Assigned:
Status: Not a bug Package: cURL related
PHP Version: 4.3.6 OS: Widndows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dac514 at sympatico dot ca
New email:
PHP Version: OS:


 [2004-04-26 20:44 UTC] dac514 at sympatico dot ca
The following code used to work until i upgraded to 4.3.6

Reproduce code:
// Get RSS feed
$c = curl_init('');
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);

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?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-29 15:27 UTC]
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 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. 
 [2004-04-30 16:43 UTC] daniel at haxx dot se
I'm not aware of any such libcurl bugs, but the URL in this report doesn't work and I cannot repeat this problem.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 14:01:29 2024 UTC