1.2.765. New Constants In PHP 7.2

The following constants are now native in PHP 7.2. It is advised to avoid using such names for constant before moving to this new version.

  • PHP_OS_FAMILY

  • PHP_FLOAT_DIG

  • PHP_FLOAT_EPSILON

  • PHP_FLOAT_MAX

  • PHP_FLOAT_MIN

  • SQLITE3_DETERMINISTIC

  • CURLSSLOPT_NO_REVOKE

  • CURLOPT_DEFAULT_PROTOCOL

  • CURLOPT_STREAM_WEIGHT

  • CURLMOPT_PUSHFUNCTION

  • CURL_PUSH_OK

  • CURL_PUSH_DENY

  • CURL_HTTP_VERSION_2TLS

  • CURLOPT_TFTP_NO_OPTIONS

  • CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE

  • CURLOPT_CONNECT_TO

  • CURLOPT_TCP_FASTOPEN

  • DNS_CAA

See also New global constants in 7.2.

1.2.765.1. Suggestions

  • Move the constants to a new namespace

  • Remove the old constants

  • Rename the old constants

1.2.765.2. Specs

Short name

Php/Php72NewConstants

Rulesets

All, Changed Behavior, CompatibilityPHP72

Exakat since

0.10.7

PHP Version

With PHP 7.2 and older

Severity

Major

Time To Fix

Slow (1 hour)

Precision

Very high

Features

constant

Available in

Entreprise Edition, Exakat Cloud