1.2.1466. 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.1466.1. Suggestions

  • Drop all arguments from curl_version() calls.

1.2.1466.2. Specs

Short name

Structures/CurlVersionNow

Rulesets

All, CE, Changed Behavior, CompatibilityPHP74

Exakat since

1.8.4

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Changed Behavior

PHP 7.4 - More

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud