[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
This commit is contained in:
Jordan Rogers 2012-08-21 10:20:35 -03:00 committed by Andreas Fischer
parent ac81611b90
commit 73cd044f5c

View file

@ -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,