PDO Disconnect and Persistent Connect
DRANK
Hello PHP,I am writing per the RFC guidelines and requesting initial feedback, as Iam considering an RFC to add a PDO::disconnect method as well as to improvehandling (or removal?) of persistent connections during PDO object creationand deletion.Should the RFC go forward, I would propose to implement any changes. I havesubmitted a preliminary pull request where some discussion has occurred,and an implementation proof-of-concept relayed.The following is the rationale provided in the pull request for adisconnect method.Current recommendations in PDO application integration avoid the need foran explicit disconnect routine and workaround the [below] described issuesthrough prescribed use of a single PDO object instance for any givendatabase connection, and which database connection is terminated uponeither PDO object destruct or, in the case of persistent connections, atthe end of script execution. While the use of a singleton object fordatabase connection handling within applications is …
externals.io/message/128437 persistent ないと死ぬでしょ、と思ったけど、persistent に慣れた PHPer のほうが世に少ない説はある