note 93802 deleted from function.version-compare by cmb
| From: | cmb@php.net | Date: | Mon, 26 Oct 2020 16:12:09 +0000 |
| Subject: | note 93802 deleted from function.version-compare by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215656@lists.php.net to get a copy of this message | ||
Note Submitter: loaded67 at hotmail dot com
----
This function is also usefull when working with multiple installations.
As php5.3+ will not have E_STRICT in the error_reporting anymore you can state:
<?php
ini_set('error_reporting', (version_compare(PHP_VERSION, '5.3.0',
'<') ? E_ALL|E_STRICT : E_ALL));
?>
Giving you all the error error reporting you want...