1.2.1477. curl_version() Has No Argument¶
curl_version() used to accept CURLVERSION_NOW
as argument. Since PHP 7.4, it is a function without arguments.
<?php
// Compatible syntax
$details = curl_version(CURLVERSION_NOW);
// New PHP 7.4 syntax
$details = curl_version();
?>
See also curl_version.
1.2.1477.1. Suggestions¶
Drop all arguments from curl_version() calls.
1.2.1477.2. Specs¶
Short name |
Structures/CurlVersionNow |
Rulesets |
|
Exakat since |
1.8.4 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Changed Behavior |
PHP 7.4 |
Precision |
Very high |
Available in |