I found that if in Joomla 1.5:
if configuration.php file values are:
Code: Select all
var $error_reporting = '0';
Code: Select all
var $error_reporting = '-1';
Code: Select all
// System configuration
$CONFIG = new JConfig();
if (@$CONFIG->error_reporting === 0) {
error_reporting( 0 );
} else if (@$CONFIG->error_reporting > 0) {
error_reporting( $CONFIG->error_reporting );
ini_set( 'display_errors', 1 );
}
case 1: if (@$CONFIG->error_reporting === 0) will be compared with '0'. will not match. as the '0' is string value and not integer. and the === sign compares the datatype also.
case 2: for '-1' it is not meaningful. it will also not get satisfied. but the result will remain meaningful to keep the value global as per set in php.ini. so this case can be escaped from bug.