mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/curl: Update sync_constants.php const matching to uncover more constants (#13282)
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.
This commit is contained in:
committed by
GitHub
parent
01e39c0ea9
commit
e30c11f599
@@ -25,7 +25,7 @@ const IGNORED_PHP_CONSTANTS = [
|
||||
'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.
|
||||
|
||||
Reference in New Issue
Block a user