From 33849140dacc6f42145c6dac48ef9dee9b653eb7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 24 Jan 2017 16:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Connection=E7=B1=BBclose?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Connection.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/think/db/Connection.php b/library/think/db/Connection.php index e9cfb19f..b2d6a305 100644 --- a/library/think/db/Connection.php +++ b/library/think/db/Connection.php @@ -741,7 +741,10 @@ abstract class Connection */ public function close() { - $this->linkID = null; + $this->linkID = null; + $this->linkWrite = null; + $this->linkRead = null; + $this->links = []; } /**