1.2.920. 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.920.1. Suggestions

  • Remove usage of track_errors.

1.2.920.2. Specs

Short name

Php/Php80RemovedDirective

Rulesets

All, CE, CompatibilityPHP80, CompatibilityPHP81

Exakat since

2.1.9

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

directive

Related rule

PHP 7.4 Removed Directives, PHP 8.1 Removed Directives

Available in

Entreprise Edition, Community Edition, Exakat Cloud