[php-src] PR #21007: Provide mechanism for PDO to throw away a persistent connection and get a new one

From: Date: Thu, 22 Jan 2026 16:07:23 +0000
Subject: [php-src] PR #21007: Provide mechanism for PDO to throw away a persistent connection and get a new one
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34635@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21007 Author: NattyNarwhal The persistent connection may be in a wedged or otherwise undesirable state that the connection liveness check has failed to deal with. (For instance, the ODBC connection dead attribute that PDO_ODBC uses to check isn't perfectly handled by all drivers, or if a persistent connection has bad persistent state, it's easier to just reconnect if so.) If so, provide userland code a way to get rid of a persistent connection and create a new one in its place. This is prompted by the discussion in GH-15749 and GH-19933. I think adding a notion of disconnected PDO objects is probably unwise, so this provides an alternative that requires very minimal changes in PDO. I'm not entirely pleased with this approach, but perhaps there is a better one.

« previous php.git-pulls (#34635) next »