CURLOPT_FNMATCH_FUNCTION
Constant • Added in PHP 5.5
CURLOPT_FNMATCH_FUNCTION is one of the accepted parameters for curl_setopt parameter #2.
CURLOPT_FNMATCH_FUNCTION — Pass a callable that will be used for wildcard matching.
The signature of the callback should be:
The callback should return
[`CURL_FNMATCHFUNC_MATCH`](/codex/CURL_FNMATCHFUNC_MATCH) if pattern matches the `string`,
[`CURL_FNMATCHFUNC_NOMATCH`](/codex/CURL_FNMATCHFUNC_NOMATCH) if not
or [`CURL_FNMATCHFUNC_FAIL`](/codex/CURL_FNMATCHFUNC_FAIL) if an error occurred.
Available as of cURL 7.21.0. CURLOPT_FNMATCH_FUNCTION = 20200; Changes to the CURLOPT_FNMATCH_FUNCTION Constant
PHP 5.5
- Constant added
CURLOPT_FNMATCH_FUNCTION Constant Availability
CURLOPT_FNMATCH_FUNCTION Constant Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Future Release | Yes |
| PHP 8.5Upcoming Release | Yes |
| PHP 8.4Supported (Latest) | Yes |
| PHP 8.3Supported | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Security-Fixes Only | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | No |
| PHP 5.3Unsupported | No |