Skip to content

PHP 8.6 | NewConstants: detect new Curl constants - #2084

Merged
wimg merged 1 commit into
developfrom
php-8.6/newconstants-curl
Sep 13, 2026
Merged

wimg merged 1 commit into
developfrom
php-8.6/newconstants-curl

Conversation

@jrfnl

@jrfnl jrfnl commented Sep 12, 2026

Copy link
Copy Markdown
Member
  • Curl:
    . CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0).
    . CURLOPT_SEEKFUNCTION.
    . CURL_SEEKFUNC_OK.
    . CURL_SEEKFUNC_FAIL.
    . CURL_SEEKFUNC_CANTSEEK.
    . CURL_READFUNC_ABORT.

This commit accounts for detecting use of the new constants.

Includes test.

Refs:

Related to #2052

> - Curl:
>   . CURLINFO_SIZE_DELIVERED (libcurl >= 8.20.0).
>   . CURLOPT_SEEKFUNCTION.
>   . CURL_SEEKFUNC_OK.
>   . CURL_SEEKFUNC_FAIL.
>   . CURL_SEEKFUNC_CANTSEEK.
>   . CURL_READFUNC_ABORT.

This commit accounts for detecting use of the new constants.

Includes test.

Refs:
* https://github.com/php/php-src/blob/75ad0885c9acd7735442d7de3c038fb59aa147c8/UPGRADING#L797-L803
* php/php-src 22408 (`CURLINFO_SIZE_DELIVERED`)
* php/php-src@fd8eaaf
* php/php-src 22230 (`CURLOPT_SEEKFUNCTION` + `CURL_SEEK*`)
* php/php-src@93fa5f3
* php/php-src 22757 (`CURL_READFUNC_ABORT`)
* php/php-src@ac37a97

Related to 2052
@jrfnl jrfnl added this to the 10.0.0-alpha3 milestone Sep 12, 2026
@jrfnl
jrfnl requested a review from wimg September 12, 2026 23:04
@wimg
wimg merged commit 8973247 into develop Sep 13, 2026
50 checks passed
@wimg
wimg deleted the php-8.6/newconstants-curl branch September 13, 2026 18:50
@github-actions github-actions Bot removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants