note 115244 deleted from pdo.connections by cmb

From: Date: Fri, 01 Jul 2016 09:21:13 +0000
Subject: note 115244 deleted from pdo.connections by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205849@lists.php.net to get a copy of this message
Note Submitter: Vicente ---- 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.

« previous php.notes (#205849) next »