protected function getConnection() { //没有可用的连接 if (count($this->pool) == 0) { $db = new MySQLi($this->config); $db->connect(); return $db; } else { return array_pop($this->pool); } }
protected function getConnection() { //没有可用的连接 if (count($this->pool) == 0) { $db = new MySQLi($this->config); $db->connect(); return $db; } else { return array_pop($this->pool); } }