From fa1d452e03a7522fbcf37b9649bd5b7421367c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 18 Apr 2016 12:21:23 +0200 Subject: [PATCH] Do not hide errors from database connection attempts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without these errors it's impossible to figure out what went wrong in the SSL negotiation. All you get is error 2002 without any means to diagnose and all important information is issued as PHP warnings. Issue #12146 Signed-off-by: Michal Čihař --- libraries/dbi/DBIMysqli.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/dbi/DBIMysqli.php b/libraries/dbi/DBIMysqli.php index 6f1584f026..f2f8a160dc 100644 --- a/libraries/dbi/DBIMysqli.php +++ b/libraries/dbi/DBIMysqli.php @@ -84,7 +84,7 @@ class DBIMysqli implements DBIExtension } if ($client_flags === null) { - return @mysqli_real_connect( + return mysqli_real_connect( $link, $host, $user, @@ -94,7 +94,7 @@ class DBIMysqli implements DBIExtension $server_socket ); } else { - return @mysqli_real_connect( + return mysqli_real_connect( $link, $host, $user,