From 42a182b6f4f91d1bca14a1977c0e777bb7d93413 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 9 Mar 2005 22:57:24 +0000 Subject: [PATCH] Better detecting for PHP5. --- kernel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel.php b/kernel.php index 81a5ca2..8f08b20 100644 --- a/kernel.php +++ b/kernel.php @@ -20,11 +20,11 @@ if (PHP_VERSION < '4.1.0') exit; } -if (PHP_VERSION > '5.0.0') +if (version_compare(PHP_VERSION, '5.0.0', '>=')) { - if (ini_get('error_reporting') & E_USER_NOTICE) + if (ini_get('error_reporting') & E_NOTICE) { - error_reporting(ini_get('error_reporting') - E_USER_NOTICE); + error_reporting(ini_get('error_reporting') - E_NOTICE); } } -- 2.43.5