Skip to content

Commit ec4e3ec

Browse files
committed
ext/curl: Update stub CURLOPT_ENCODING @cvalue to CURLOPT_ACCEPT_ENCODING
In Curl 7.21.6, the `CURLOPT_ENCODING` constant was renamed to `CURLOPT_ACCEPT_ENCODING`. `CURLOPT_ENCODING` is deprecated from Curl 7.21.6. It still provides `CURLOPT_ENCODING` from `CURLOPT_ACCEPT_ENCODING` for backward compatibility. However, now that PHP requires Curl 7.61, we can safely use the new `CURLOPT_ACCEPT_ENCODING` constant.
1 parent 871d53c commit ec4e3ec

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ext/curl/curl.stub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
const CURLOPT_EGDSOCKET = UNKNOWN;
8585
/**
8686
* @var int
87-
* @cvalue CURLOPT_ENCODING
87+
* @cvalue CURLOPT_ACCEPT_ENCODING
88+
* @alias CURLOPT_ACCEPT_ENCODING
8889
*/
8990
const CURLOPT_ENCODING = UNKNOWN;
9091
/**

ext/curl/curl_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)