Re: [Discuss] Add PDO disconnect() and isConnected()

From: Date: Wed, 01 Oct 2025 13:45:39 +0000
Subject: Re: [Discuss] Add PDO disconnect() and isConnected()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-128755@lists.php.net to get a copy of this message
> I generally agree that there's little value to a disconnect() action; unset($pdo) is already sufficient. See the point again about persistent connections. The user has no means to disconnect in that case. > I recommend to use a name that deters users from using it in normal operations, e.g. pdo->debug_manual_disconnect(). Considering the above as well, a possible stance to take could be to introduce it as persistent_disconnect(). We could then decide whether it should function on "regular" connections as well.

« previous php.internals (#128755) next »