From 0101597c16f256f2483b00ad73a329b39149442c Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Wed, 31 Jan 2024 15:28:02 +0700 Subject: [PATCH] ext/curl: Update `sync_constants.php` const matching to uncover more constants The `sync_constants.php` file uncovers constants present in libcurl source, but\ not present in PHP ext/curl source. There is a regular expression to match Curl constants, but to it did not previously include `CURLE_*` and `CURLINFO_*` constants, which PHP should expose as constants. This updates the `sync_constants.php` file's constant filter regex to expose those constants patterns as well. The new missing constants will be added in a later PR. --- ext/curl/sync-constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/curl/sync-constants.php b/ext/curl/sync-constants.php index 22db954dd3dd3..5d1eb52e83470 100755 --- a/ext/curl/sync-constants.php +++ b/ext/curl/sync-constants.php @@ -25,7 +25,7 @@ 'CURLOPT_SAFE_UPLOAD', ]; -const CONSTANTS_REGEX_PATTERN = '~^CURL(?:OPT|_VERSION|_HTTP)_[A-Z0-9_]+$~'; +const CONSTANTS_REGEX_PATTERN = '~^CURL(?:E|INFO|OPT|_VERSION|_HTTP)_[A-Z0-9_]+$~'; /** * A simple helper to create ASCII tables.