.. _php-php81removeddirective: .. _php-8.1-removed-directives: 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 `_. Connex PHP features ------------------- + `directive `_ Suggestions ___________ * Remove usage of the directives. Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Php/Php81RemovedDirective | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`CompatibilityPHP81 ` | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.2.3 | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Related rule | :ref:`php-7.4-removed-directives`, :ref:`php-8.0-removed-directives` | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+