Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105886 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74914 invoked from network); 13 Jun 2019 10:22:21 -0000 Received: from unknown (HELO azure.elm.relay.mailchannels.net) (23.83.212.7) by pb1.pair.com with SMTP; 13 Jun 2019 10:22:21 -0000 X-Sender-Id: s0seqk11zu|x-authuser|lester@lsces.uk Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F1F806A1E31 for ; Thu, 13 Jun 2019 07:35:25 +0000 (UTC) Received: from draco.thewebhostserver.com (100-96-88-48.trex.outbound.svc.cluster.local [100.96.88.48]) (Authenticated sender: s0seqk11zu) by relay.mailchannels.net (Postfix) with ESMTPA id 50D9D6A0EEB for ; Thu, 13 Jun 2019 07:35:24 +0000 (UTC) X-Sender-Id: s0seqk11zu|x-authuser|lester@lsces.uk Received: from draco.thewebhostserver.com ([TEMPUNAVAIL]. [185.38.44.226]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Thu, 13 Jun 2019 07:35:25 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: s0seqk11zu|x-authuser|lester@lsces.uk X-MailChannels-Auth-Id: s0seqk11zu X-Descriptive-Desert: 7af19e5e0b0df0f9_1560411325532_878063346 X-MC-Loop-Signature: 1560411325532:3379768061 X-MC-Ingress-Time: 1560411325531 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lsces.uk; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=s07BwOKR0VMNFh6YiBRDxr6wtIk1ZY86/FpVXJkQC2k=; b=T/hxNJN5SNFOShspGLjDsJYAk3 rKZ+nyDbGasIbcWQ2EysvWGaDkG7GeLZIORIepAIwA3XRurZqZl1yqpy8ltdDLH3GWu3PPHNxS9bA 9lW1667NKMOeKLyOWTTijdDcb8uTpy4A6T4e5yfYRPP2F8aHK9clFrAEy6MwrZj9tDDbLh64+3EAW ZEqCUwYPBCcv2aq1rNDDuyj50R3g8fkpmV76LS4zgMNTYMk22QGXcuXXLqbHTx34SEe+6/Q0Q9tE4 ypo4uM6ZUSD97BQhHK+aQK50389XS9Tw2iLgodz3shl8ReyJ9BjI9g9LOFaHayPdB+Q7+Pf/+nSqp xiocSBuw==; Received: from static-87-75-107-50.vodafonexdsl.co.uk ([87.75.107.50]:47870 helo=[10.0.0.7]) by draco.thewebhostserver.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hbKGM-002yEz-La for internals@lists.php.net; Thu, 13 Jun 2019 08:35:10 +0100 To: internals@lists.php.net Message-ID: Date: Thu, 13 Jun 2019 08:35:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-thewebhostserver-MailScanner-Information: Please contact the ISP for more information X-thewebhostserver-MailScanner-ID: 1hbKGM-002yEz-La X-thewebhostserver-MailScanner: Found to be clean X-thewebhostserver-MailScanner-SpamCheck: X-thewebhostserver-MailScanner-From: lester@lsces.uk X-Spam-Status: No X-AuthUser: lester@lsces.uk Subject: The real world ... From: lester@lsces.uk (Lester Caine) Seen in the wild ... company name sanitised Warning: mysqli::mysqli(): (HY000/2002): No such file or directory in /home/888/public_html/system/library/db/mysqli.php on line 7 Fatal error: Uncaught exception 'Exception' with message 'Error:
Error No: ' in /home/888/public_html/system/library/db/mysqli.php:10 Stack trace: #0 /home/888/public_html/system/nitro/core/nitro_db.php(29): DB\MySQLi->__construct('localhost', '888_4y65f5...', 'J?vJr+j5iCju-bo...', '888_4y65f5...', '3306') #1 /home/888/public_html/system/nitro/core/nitro_db.php(13): NitroDb->__construct('mysqli', 'localhost', '888_4y65f5...', 'J?vJr+j5iCju-bo...', '888_4y65f5...', '3306') #2 /home/888/public_html/system/storage/modification/system/library/db.php(11): NitroDb::getInstanceWithParams('mysqli', 'localhost', '888_4y65f5...', 'J?vJr+j5iCju-bo...', '888_4y65f5...', '3306') #3 /home/888/public_html/system/framework.php(36): DB->__construct('mysqli', 'localhost', '888_4y65f5...', 'J?vJr+j5iCju-bo...', '888_4y65f5...', '3306') #4 /home/888/public_html/vqmod/vqcache/vq2-system_startup.php(124): require_once('/home/888 in /home/888/public_html/system/library/db/mysqli.php on line 10 你的代码出错了: I presume something has been updated that they have not been aware of since it's library file that triggered the warning ... but it's not the first time in recent years I've seen this sort of information on commercial sites and while my own clients just get white screens, those are created by the likes of Wordpress when 'automatic updates' happen. Many years ago the response was "well don't update", but 'current practice' takes that out of OUR hands! So isn't it time that the triggering exceptions like this did produce a more user secure response to protect against leaks like this and provide a better alternative than a white screen? In the case of this live site, I actually placed an order as it was only some links that triggered the fault, which may explain why they were not even aware there was a problem :( From the 'development' side, NitroDb-> should obviously be handling the problem anyway? -- Lester Caine - G8HFL ----------------------------- Contact - https://lsces.uk/wiki/Contact L.S.Caine Electronic Services - https://lsces.uk Model Engineers Digital Workshop - https://medw.uk Rainbow Digital Media - https://rainbowdigitalmedia.uk