1.2.926. PHP 8.1 Removed Directives

List of directives that are removed in PHP 8.1.

In PHP 8.1, the following directives were removed :

  • mysqlnd.fetch_data_copy

  • filter.default

  • filter.default_options

  • auto_detect_line_endings

  • oci8.old_oci_close_semantics

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 also PHP RFC: Deprecations for PHP 8.1.

1.2.926.1. Suggestions

  • Remove usage of the directives.

1.2.926.2. Specs

Short name

Php/Php81RemovedDirective

Rulesets

All, CompatibilityPHP81

Exakat since

2.2.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Related rule

PHP 7.4 Removed Directives, PHP 8.0 Removed Directives

Available in

Entreprise Edition, Exakat Cloud