1.2.926. PHP 8.0 Removed Directives

List of directives that are removed in PHP 8.0.

In PHP 8.0, track_errors was removed.

You can detect valid directives with ini_get(). This native function will return false, when the directive doesn’t exist, while actual directive values will be returned as a string.

See Deprecation `track_errors <https://www.php.net/manual/en/migration80.incompatible.php`_.

<?php

var_dump(ini_get('track_errors'));

?>

1.2.926.1. Connex PHP features

1.2.926.1.1. Suggestions

  • Remove usage of track_errors.

1.2.926.1.2. Specs

Short name

Php/Php80RemovedDirective

Rulesets

All, CE, Changed Behavior, CompatibilityPHP80, CompatibilityPHP81

Exakat since

2.1.9

PHP Version

With PHP 8.0 and older

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Related rule

PHP 7.4 Removed Directives, PHP 8.1 Removed Directives

Available in

Entreprise Edition, Community Edition, Exakat Cloud