|  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
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:
Solve the problem:
38 - 28 = ?
Subscribe to this entry?

 [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-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 20:03:33 2021 UTC