Skip to content

Commit d0c5ce2

Browse files
committed
curl: sync-constants.php regex and URL improvements
- 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: php#12543
1 parent b6bf7a0 commit d0c5ce2

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)