From d0375388b4c01f2e6491b2fc0a9c733db931ba55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 24 Aug 2023 14:15:00 +0800 Subject: [PATCH] qqq --- Connection.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Connection.php b/Connection.php index e633414..de05480 100644 --- a/Connection.php +++ b/Connection.php @@ -309,11 +309,9 @@ class Connection extends Component */ public function release(PDO $PDO): void { - if ($this->inTransaction()) { - return; + if (!$this->inTransaction()) { + $this->pool()->push($this->cds, [$PDO, time()]); } - file_put_contents('php://output', '回收PDO连接.' . $this->cds, FILE_APPEND); - $this->pool()->push($this->cds, [$PDO, time()]); }