Attempting to make this run on modern PHP versions. Sigh

This commit is contained in:
Karl Cordes 2016-04-30 12:19:02 +10:00
parent 2464a39465
commit 446bf72898
2 changed files with 3 additions and 3 deletions

View file

@ -144,7 +144,7 @@ Configure::write('Cache.disable', true);
* Defines the default error type when using the log() function. Used for
* differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
*/
define('LOG_ERROR', 2);
define('LOG_ERROR', 0);
/**
* The preferred session handling method. Valid values:
*

View file

@ -30,7 +30,7 @@ if (!defined('PHP5')) {
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 8192);
}
error_reporting(E_ALL & ~E_DEPRECATED);
error_reporting(~E_ALL & ~E_DEPRECATED);
/**
* Configuration, directory layout and standard libraries
*/
@ -49,4 +49,4 @@ error_reporting(E_ALL & ~E_DEPRECATED);
$url = null;
App::import('Core', array('Dispatcher'));
?>
?>