mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/10126] Use binary "and not" instead of binary "xor" in error_reporting.
Make what we want to achieve clear by using "and not" instead of "xor". PHPBB3-10126
This commit is contained in:
@@ -24,7 +24,7 @@ if (!defined('E_DEPRECATED'))
|
|||||||
{
|
{
|
||||||
define('E_DEPRECATED', 8192);
|
define('E_DEPRECATED', 8192);
|
||||||
}
|
}
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Remove variables created by register_globals from the global scope
|
* Remove variables created by register_globals from the global scope
|
||||||
|
@@ -35,7 +35,7 @@ if (isset($_GET['avatar']))
|
|||||||
{
|
{
|
||||||
define('E_DEPRECATED', 8192);
|
define('E_DEPRECATED', 8192);
|
||||||
}
|
}
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
||||||
|
|
||||||
require($phpbb_root_path . 'config.' . $phpEx);
|
require($phpbb_root_path . 'config.' . $phpEx);
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ if (!defined('E_DEPRECATED'))
|
|||||||
{
|
{
|
||||||
define('E_DEPRECATED', 8192);
|
define('E_DEPRECATED', 8192);
|
||||||
}
|
}
|
||||||
//error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
//error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
|
@@ -23,7 +23,7 @@ if (!defined('E_DEPRECATED'))
|
|||||||
{
|
{
|
||||||
define('E_DEPRECATED', 8192);
|
define('E_DEPRECATED', 8192);
|
||||||
}
|
}
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
||||||
|
|
||||||
// @todo Review this test and see if we can find out what it is which prevents PHP 4.2.x from even displaying the page with requirements on it
|
// @todo Review this test and see if we can find out what it is which prevents PHP 4.2.x from even displaying the page with requirements on it
|
||||||
if (version_compare(PHP_VERSION, '4.3.3') < 0)
|
if (version_compare(PHP_VERSION, '4.3.3') < 0)
|
||||||
|
@@ -20,7 +20,7 @@ if (!defined('E_DEPRECATED'))
|
|||||||
{
|
{
|
||||||
define('E_DEPRECATED', 8192);
|
define('E_DEPRECATED', 8192);
|
||||||
}
|
}
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
|
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
|
||||||
|
|
||||||
require($phpbb_root_path . 'config.' . $phpEx);
|
require($phpbb_root_path . 'config.' . $phpEx);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user