note 115244 added to pdo.connections
| From: | Vicente | Date: | Thu, 19 Jun 2014 08:48:53 +0000 |
| Subject: | note 115244 added to pdo.connections | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199719@lists.php.net to get a copy of this message | ||
WARNING: please note that the documentation is FALSE and INCOMPLETE, when it states setting the
variable to NULL is enough to close the connection. Unfortunately, the real signification is obscur
for those who don't understand what it means setting a variable to NULL in PHP (ref count).
In fact, references count is used to determine automatically when a connection must be closed: when
the connection instance is not holded by any variable anymore, it is closed. Not very flexible to
manage resources allocation exactly the way you want.
PDO class actually doesn't expose any method to manually close connection it opens in the
constructor.
----
Server IP: 72.52.91.14
Probable Submitter: 109.26.29.21
----
Manual Page -- http://php.net/manual/en/pdo.connections.php
Edit -- https://master.php.net/note/edit/115244
Del: integrated -- https://master.php.net/note/delete/115244/integrated
Del: useless -- https://master.php.net/note/delete/115244/useless
Del: bad code -- https://master.php.net/note/delete/115244/bad+code
Del: spam -- https://master.php.net/note/delete/115244/spam
Del: non-english -- https://master.php.net/note/delete/115244/non-english
Del: in docs -- https://master.php.net/note/delete/115244/in+docs
Del: other reasons-- https://master.php.net/note/delete/115244
Reject -- https://master.php.net/note/reject/115244
Search -- https://master.php.net/manage/user-notes.php