note 93802 added to function.version-compare
| From: | loaded67 at hotmail dot com | Date: | Wed, 30 Sep 2009 11:53:33 +0000 |
| Subject: | note 93802 added to function.version-compare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161167@lists.php.net to get a copy of this message | ||
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...
----
Server IP: 83.137.20.135
Probable Submitter: 83.81.85.179
----
Manual Page -- http://www.php.net/manual/en/function.version-compare.php
Edit -- https://master.php.net/note/edit/93802
Del: integrated -- https://master.php.net/note/delete/93802/integrated
Del: useless -- https://master.php.net/note/delete/93802/useless
Del: bad code -- https://master.php.net/note/delete/93802/bad+code
Del: spam -- https://master.php.net/note/delete/93802/spam
Del: non-english -- https://master.php.net/note/delete/93802/non-english
Del: in docs -- https://master.php.net/note/delete/93802/in+docs
Del: other reasons-- https://master.php.net/note/delete/93802
Reject -- https://master.php.net/note/reject/93802
Search -- https://master.php.net/manage/user-notes.php