php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21995 Lacks support for CURLOPT_ENCODING - working patch included!!
Submitted: 2003-02-01 08:52 UTC Modified: 2003-04-02 05:43 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: jens at mermaidconsulting dot dk Assigned:
Status: Closed Package: cURL related
PHP Version: 4.3.2RC1 OS: Linux
Private report: No CVE-ID: None
 [2003-02-01 08:52 UTC] jens at mermaidconsulting dot dk
PHP does not recognize the cURL option CURLOPT_ENCODING which can be used to request deflate compression.

The following patch upgrades a 4.3.0 ext/curl/curl.c to support it:

194d193
<  REGISTER_CURL_CONSTANT(CURLOPT_ENCODING);
741,742c740
<      case CURLOPT_SSLENGINE_DEFAULT:
<      case CURLOPT_ENCODING: {
---
>      case CURLOPT_SSLENGINE_DEFAULT: {



CURLOPT_ENCODING accepts a string parameter.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-02 14:57 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

PHP5-dev
 [2003-04-01 18:12 UTC] jens at mermaidconsulting dot dk
I've just tested the release candidate for 4.3.2, and the fix is still not included there.

Is it possible to have this fix included in 4.3.2?
(perhaps it was committed only to the PHP5 branch?)
 [2003-04-02 05:43 UTC] sniper@php.net
Done.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 09:01:28 2024 UTC