From: pdontthink Date: Thu, 14 May 2009 18:43:06 +0000 (+0000) Subject: Show real values for error settings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8a6b8e1f25781423b7788700c5dd1e7998e0ad1f;p=squirrelmail.git Show real values for error settings git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13704 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/configtest.php b/src/configtest.php index 264590e8..2d45eb46 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -21,7 +21,10 @@ define('PAGE_NAME', 'configtest'); // This script could really use some restructuring as it has grown quite rapidly // but is not very 'clean'. Feel free to get some structure into this thing. -/** force verbose error reporting and turn on display of errors */ +// force verbose error reporting and turn on display of errors, but not before +// getting their original values +$php_display_errors_original_value = ini_get('display_errors'); +$php_error_reporting_original_value = ini_get('error_reporting'); error_reporting(E_ALL); ini_set('display_errors',1); @@ -203,9 +206,9 @@ if(!check_php_version(4,1,0)) { echo $IND . 'PHP version ' . PHP_VERSION . ' OK. (You have: ' . phpversion() . ". Minimum: 4.1.0)
\n"; -echo $IND . 'display_errors: ' . ini_get('display_errors') . "
\n"; +echo $IND . 'display_errors: ' . $php_display_errors_original_value . " (overridden with 1 for this page only)
\n"; -echo $IND . 'error_reporting: ' . ini_get('error_reporting') . "
\n"; +echo $IND . 'error_reporting: ' . $php_error_reporting_original_value . " (overridden with 2047 for this page only)
\n"; $safe_mode = ini_get('safe_mode'); if ($safe_mode) {