Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128795 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 417061A00BC for ; Tue, 7 Oct 2025 08:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1759826509; bh=ZP4XgJC3/x/xwaToI5j/JpCxQwBWmaRRLhSxNbqp6BI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZEXWPLMOoLiq+upMleNIYtnMsDDukHzkGxu8kap7GGoFrEZZUIVXBAZe77ofTWktm YcqCfpfBVCY9d25xmlS09CbkSojTqq/dWknDM4ZADUEDcwn1fNCtdqkEEterh9PJaY XIe5QdejuGfBxQ6fajnQaXrnuz5eodfLAvxdS/MfrJFrE3COnAYvrbdraelP7jeN2U TC5iXJ6186kERZhwDqZnfUUcZ8z5Eds93se166LcmNF1B1h1wA466EcgZtxkWMMygo sHJmTBe5TchRee5IjHasycrAXjnCPsTr9eoUuk42VdSC6mjW4sRYLZnVdRd3Aos7cd mqRwbgnBjkWhw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 577B818003F for ; Tue, 7 Oct 2025 08:41:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 7 Oct 2025 08:41:47 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 72AFC1400103; Tue, 7 Oct 2025 04:43:03 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 07 Oct 2025 04:43:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beccati.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1759826583; x=1759912983; bh=RKd4FjlUG13yPmSMQeQBkSa5mdGS6QaVu/tHqO1Lifg=; b= fPlApddArK6kL4/nhxxfFlRXyLal1y4Qt8/NDT+aJyVqBmOn9xoD+eHI57FE3dAH 48gkMJyqyIieBZuIOv6NLjHU6UHsWAeCsxs6mjdWAuCVwDnlMzXPcvOTM6W2JB6E bflVx8Pj+RKKAR5JLlr0JJYX8KuCH2aBGNYE1LO0A4EcqcAF8AFwOfFnbrly80r6 YGrhDlliVaIwmEUTlyyaDJsH/keYzgQ/DPl1OmbHrdH7QUR72CZc2q+xdMsgKZzG foeeATOrYidSwclceYW8wMqW3dDn7tbKtAf3qaciek/3FSXGkfmR1SB71/xDR3WO DVeX5icb2KLNdxx0Ve8S9A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1759826583; x= 1759912983; bh=RKd4FjlUG13yPmSMQeQBkSa5mdGS6QaVu/tHqO1Lifg=; b=m jmRZQk/q/wVCQ4lzJfFr1Sd+OeGSwTTrtp3tUyoILhr5Wqu1PYS09MXDUyxIiksw WtJSCNNnuBYNN/zvZ1MDG6WoPFK0pBi7q3/yKvy1WxNFSKYPHrwcBW5h6+6UznQg C9nTSgEjhe+1RqHZeTjLl6PvVAw4RoK8RTnTmpEtW5NmVReUYZl1EZ/hw4su5+se wqr+fDuyDAal3liTPH8c5tyOlE/WzwpQlY1hYdZuewk1FoA6WeTKoQuic2ApzTLc TvkfMLcTTFze8+suVOxrUmackGXUX9uMRkkdV7MDiSgx+N/dR2dAwkmkQF0xreU9 Dfe+xTcWI7SSWiZAXqSSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdelleeljecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepofgrthhtvgho uceuvggttggrthhiuceophhhphessggvtggtrghtihdrtghomheqnecuggftrfgrthhtvg hrnhepteekueehtddvleejudfhtdeigeejjeeltdethfevudfhhefhheffteetgeelueev necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhph essggvtggtrghtihdrtghomhdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvthdprh gtphhtthhopegtlhgruhguvgdrphgrtghhvgesghhmrghilhdrtghomhdprhgtphhtthho pehrohgssegsohhtthhlvggurdgtohguvghspdhrtghpthhtoheprhhpohhskhihsehgmh grihhlrdgtohhmpdhrtghpthhtohepthgvkhhivghlrgdvgeeisehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Oct 2025 04:43:02 -0400 (EDT) Message-ID: <43a60bc9-8e3d-4d83-ae8a-13465a6ef3e9@beccati.com> Date: Tue, 7 Oct 2025 10:42:59 +0200 Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [Discuss] Add PDO disconnect() and isConnected() To: PHP internals Cc: Claude Pache , Rob Landers , Robert Wolf , Kamil Tekiela References: Content-Language: it, en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: php@beccati.com (Matteo Beccati) Hi, Il 01/10/2025 20:07, Rob Landers ha scritto: >> This sounds better, but I would argue that if it's a PERSISTENT >> connection, then it should be impossible for the user to close it. The >> idea is that the connection should remain open after being established >> and should only close when the server restarts. What scenario would >> necessitate the user to close a connection that should never close? > > Off the top of my head (and it depends on the actual database on the > other end of the pipe): > > > > Right now, you have to jump through a number of hoops to do these types > of operations. During the years I've seen so many horror stories related to usage of persistent connections. I would argue we should discourage their use (deprecation is my dream!) rather than encouraging it by adding new features. My 2c. Cheers -- Matteo Beccati