CURLMOPT_PUSHFUNCTION
Constant • Added in PHP 7.1
CURLMOPT_PUSHFUNCTION is one of the accepted parameters for curl_multi_setopt parameter #2.
CURLMOPT_PUSHFUNCTION — Pass a callable that will be registered to handle server
pushes and should have the following signature:
The push function is supposed to return either
[`CURL_PUSH_OK`](/codex/CURL_PUSH_OK) if it can handle the push, or
[`CURL_PUSH_DENY`](/codex/CURL_PUSH_DENY) to reject it.
Available as of PHP 7.1.0 and cURL 7.44.0 CURLMOPT_PUSHFUNCTION = 20014; Changes to the CURLMOPT_PUSHFUNCTION Constant
PHP 7.1
- Constant added
CURLMOPT_PUSHFUNCTION Constant Availability
CURLMOPT_PUSHFUNCTION Constant Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | 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 | No |
| PHP 5.6Unsupported | No |
| PHP 5.5Unsupported | No |
| PHP 5.4Unsupported | No |
| PHP 5.3Unsupported | No |