Skip to content

Conversation

@phansys
Copy link
Contributor

@phansys phansys commented Apr 30, 2019

TODO:

  • Update sync-constants.php;
  • Check if these checks must be updated.

Relates to request #72189.

@phansys phansys force-pushed the issue_72189 branch 3 times, most recently from d97ed06 to 3f51936 Compare April 30, 2019 21:47
@phansys phansys changed the title Add missing CURL_VERSION_* and CURLVERSION_* constants Request #72189 Add missing CURL_VERSION_* constants Apr 30, 2019
@phansys phansys force-pushed the issue_72189 branch 3 times, most recently from e18cf53 to 598ca5f Compare April 30, 2019 22:04
@phansys phansys marked this pull request as ready for review April 30, 2019 22:04
@nikic
Copy link
Member

nikic commented May 2, 2019

I believe we should update

static const struct feat feats[] = {
at the same time to check for the new features. It looks like PSL is already present, but ALTSVC isn't.

REGISTER_CURL_CONSTANT(CURL_VERSION_SSPI);

#if LIBCURL_VERSION_NUM >= 0x071306 /* Available since 7.19.6 */
REGISTER_CURL_CONSTANT(CURL_VERSION_CURLDEBUG);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is an old constant, I wonder if it was omitted intentionally. The curl docs do say "This is mainly of interest for libcurl hackers". But I don't see any particular problem with exposing it either...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @bagder for thoughts about exposing it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's indeed part of the public API, exposed to the world just like the other bits there so I have no objections.

If it actually is useful to anyone is another matter...

@nikic
Copy link
Member

nikic commented May 2, 2019

Merged as 6b73e69 into 7.3+. Thanks!

@nikic nikic closed this May 2, 2019
@phansys phansys deleted the issue_72189 branch May 2, 2019 14:21
phansys added a commit to phansys/php-src that referenced this pull request May 3, 2019
php-pulls pushed a commit that referenced this pull request May 3, 2019
php-pulls pushed a commit that referenced this pull request May 3, 2019
* PHP-7.3:
  Update `NEWS` with changes made at #4093
php-pulls pushed a commit that referenced this pull request May 3, 2019
* PHP-7.4:
  Update `NEWS` with changes made at #4093
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants