W3docs

Disabling Strict Standards in PHP 5.4

To disable strict standards in PHP 5.4, you can add the following line of code to your PHP script:

To disable strict standards in PHP, you can add the following line of code to your PHP script:

Example of disabling strict standards in PHP

error_reporting(E_ALL & ~E_STRICT);

This line sets the error reporting level to show all errors except for strict standards errors.

Alternatively, you can add the following line in your php.ini file:

Example of disabling strict standards in PHP using php.ini

error_reporting = E_ALL & ~E_STRICT

This will disable strict standards for all PHP scripts on the server.

Please note that disabling strict standards is not a recommended practice, as it can hide important issues in your code that can lead to unexpected behavior or code quality problems.