Skip to content

Commit e30c11f

Browse files
authored
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.
1 parent 01e39c0 commit e30c11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/sync-constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
'CURLOPT_SAFE_UPLOAD',
2626
];
2727

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

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

0 commit comments

Comments
 (0)