Skip to content

Commit 3a04532

Browse files
authored
[skip ci] curl: sync-constants.php regex and URL improvements (#12544)
- Updates the URL of Curl constant page from `https://curl.haxx.se/libcurl/c/symbols-in-versions.html` to `https://curl.se/libcurl/c/symbols-in-versions.html`. - Fixes the regex used to filter constants to match `CURL_HTTP` constants. Related: GH-12543
1 parent f4a5db3 commit 3a04532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/curl/sync-constants.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
/**
55
* This script checks the constants defined in the curl PHP extension, against those documented on the cURL website:
6-
* https://curl.haxx.se/libcurl/c/symbols-in-versions.html
6+
* https://curl.se/libcurl/c/symbols-in-versions.html
77
*
88
* See the discussion at: https://github.com/php/php-src/pull/2961
99
*/
1010

11-
const CURL_DOC_FILE = 'https://curl.haxx.se/libcurl/c/symbols-in-versions.html';
11+
const CURL_DOC_FILE = 'https://curl.se/libcurl/c/symbols-in-versions.html';
1212

1313
const SOURCE_FILE = __DIR__ . '/curl_arginfo.h';
1414

@@ -25,7 +25,7 @@
2525
'CURLOPT_SAFE_UPLOAD',
2626
];
2727

28-
const CONSTANTS_REGEX_PATTERN = '~^CURL(?:OPT|_VERSION)_[A-Z0-9_]+$~';
28+
const CONSTANTS_REGEX_PATTERN = '~^CURL(?:OPT|_VERSION|_HTTP)_[A-Z0-9_]+$~';
2929

3030
/**
3131
* A simple helper to create ASCII tables.

0 commit comments

Comments
 (0)