php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28262 PHP Binary version of Curl Broken
Submitted: 2004-05-03 18:06 UTC Modified: 2004-05-13 19:10 UTC
From: dac514 at sympatico dot ca Assigned:
Status: Closed Package: cURL related
PHP Version: 4.3.6 OS: Windows 2000
Private report: No CVE-ID: None
 [2004-05-03 18:06 UTC] dac514 at sympatico dot ca
Description:
------------
This is a follow up to the (incorrectly marked) bogus Bug #28168. After discussing in the php.general newsgroup. I have come to the conclusion that the Windows binary distribution of PHP 4.3.6 includes a broken php_curl.dll 

The binary in question was obtained via:

http://www.php.net/get/php-4.3.6-Win32.zip/from/a/mirror






Reproduce code:
---------------
http://www.vegguide.org/plain/rss-code/get_and_parse_vegguide_rss_feed-php

(Requires an account to be able to download RSS data) 

The problem is the follwing 2 lines: 

curl_setopt($c, CURLOPT_ENCODING, 'gzip');
$data = curl_exec($c);


Expected result:
----------------
$data should be a string. 



Actual result:
--------------
$data is GZIP compressed binary data.

NB: A user in the newsgroup reported that the code still works on Linux. Prior to 4.3.6 the above also used to work on Windows, it no longer does.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-10 06:14 UTC] adamsbarker at hotmail dot com
i sent exactly the same bug report a couple of days after u and just found your one - my one is at: http://bugs.php.net/bug.php?id=28298

there is a patch for the 4.3.6 version after a previous bug report almost a year ago (read my report for info), however i can't find one for the 5.xx version.
 [2004-05-13 19:10 UTC] edink@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 15:01:31 2024 UTC