Edit report at https://bugs.php.net/bug.php?id=62065&edit=1
ID: 62065
Comment by: cato at timeanddate dot com
Reported by: b12 at bsdpower dot com
Summary: PDO should have a disconnect method
Status: Assigned
Type: Feature/Change Request
Package: PDO related
Operating System: Any
PHP Version: 5.3.13
Assigned To: willfitch
Block user comment: N
Private report: N
New Comment:
Hi,
I've added a patch to this task which provides a forced close() method to the PDO object. The
patch was made in the PHP 7.2 branch in Git. I'm not too familiar with PHP internals, so I
don't know if this is the right way to go, but I verified that it does close the connection
(though I've only tried it on MySQL).
- Cato Auestad
Previous Comments:
------------------------------------------------------------------------
[2017-10-24 03:25:49] kalle@php.net
Will, if this is something you still are intending to work on, then please submit an RFC for it.
On a personal note, I agree with the reporter that this behavior is poor design of PDO
------------------------------------------------------------------------
[2016-08-29 14:38:19] cmb@php.net
Related To: Bug #67473
------------------------------------------------------------------------
[2016-07-01 09:56:21] cmb@php.net
Related To: Bug #62847
------------------------------------------------------------------------
[2016-07-01 09:13:09] cmb@php.net
Related To: Bug #69730
------------------------------------------------------------------------
[2016-07-01 08:08:52] cmb@php.net
Related to doc bug #69730.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62065
--
Edit this bug report at https://bugs.php.net/bug.php?id=62065&edit=1