Re: [RFC] Deprecations for PHP 8.6
| From: | Theodore Brown | Date: | Mon, 22 Jun 2026 17:22:58 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 8.6 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-131468@lists.php.net to get a copy of this message | ||
On Mon, June 22, 2026 at 10:38 Bob Weinand wrote:
> Also, why would we deprecate CURLOPT_PROGRESSFUNCTION? According to
> https://grep.app/search?f.lang=PHP&q=CURLOPT_PROGRESSFUNCTION
> it's quite widely used in widely used libraries, like guzzle and symfony. And I wouldn't
> know what it's replacement would be?
Per the PHP documentation for CURLOPT_PROGRESSFUNCTION [1]:
> deprecated as of cURL 7.32.0. Use CURLOPT_XFERINFOFUNCTION instead.
The cURL page for this option also states that it is deprecated since 7.32.0. [2]
It probably would be good to update the RFC to clarify this.
Sincerely,
Theodore
[1]: https://www.php.net/manual/en/curl.constants.php#constant.curlopt-progressfunction
[2]: https://curl.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html