From 73cd044f5c81a1600f63103a33318e20163f5095 Mon Sep 17 00:00:00 2001 From: Jordan Rogers Date: Tue, 21 Aug 2012 10:20:35 -0300 Subject: [PATCH] [ticket/11066] Remove debug code error_reporting(E_ALL) from mssqlnative.php For some reason, all errors are just flipped on before connecting to the database, despite the system as a whole having a different setting for displayable errors. Had to add & ~E_STRICT in PHP 5.4.5 to suppress Strict Standards messages, but I would assume that the db piece shouldn't be involved with setting error_reporting at all. PHPBB3-11066 --- phpBB/includes/db/mssqlnative.php | 1 - 1 file changed, 1 deletion(-) diff --git a/phpBB/includes/db/mssqlnative.php b/phpBB/includes/db/mssqlnative.php index ff2f369706..3ad0ff3e11 100644 --- a/phpBB/includes/db/mssqlnative.php +++ b/phpBB/includes/db/mssqlnative.php @@ -219,7 +219,6 @@ class dbal_mssqlnative extends dbal $this->server = $sqlserver . (($port) ? $port_delimiter . $port : ''); //connect to database - error_reporting(E_ALL); $this->db_connect_id = sqlsrv_connect($this->server, array( 'Database' => $this->dbname, 'UID' => $this->user,