note 98317 added to pdostatement.fetch
| From: | TylerS at osu1 dot php dot net | Date: | Wed, 09 Jun 2010 03:42:01 +0000 |
| Subject: | note 98317 added to pdostatement.fetch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-169956@lists.php.net to get a copy of this message | ||
To Typer85 at gmail dot com,
The reason why you can still execute on the returned PDOStatement is because the PDOStatement
instance contains a reference to the original PDO instance. Therefore, your '$Handle =
null;' is only setting that one reference to null; there is still at least one more reference
alive within the PDOStatement. The PDO instance still exists and therefore so does your connection.
----
Server IP: 69.147.83.197
Probable Submitter: 98.202.183.195
----
Manual Page -- http://www.php.net/manual/en/pdostatement.fetch.php
Edit -- https://master.php.net/note/edit/98317
Del: integrated -- https://master.php.net/note/delete/98317/integrated
Del: useless -- https://master.php.net/note/delete/98317/useless
Del: bad code -- https://master.php.net/note/delete/98317/bad+code
Del: spam -- https://master.php.net/note/delete/98317/spam
Del: non-english -- https://master.php.net/note/delete/98317/non-english
Del: in docs -- https://master.php.net/note/delete/98317/in+docs
Del: other reasons-- https://master.php.net/note/delete/98317
Reject -- https://master.php.net/note/reject/98317
Search -- https://master.php.net/manage/user-notes.php