#28168 [NEW]: gzip support broken?

From: Date: Mon, 26 Apr 2004 18:44:31 +0000
Subject: #28168 [NEW]: gzip support broken?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58819@lists.php.net to get a copy of this message
From: dac514 at sympatico dot ca Operating system: Widndows 2000 PHP version: 4.3.6 PHP Bug Type: cURL related Bug description: gzip support broken? 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 bug report at http://bugs.php.net/?id=28168&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28168&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28168&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28168&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28168&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28168&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28168&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28168&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28168&r=support Expected behavior: http://bugs.php.net/fix.php?id=28168&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28168&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28168&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28168&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28168&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28168&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28168&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28168&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28168&r=float

« previous php.bugs (#58819) next »