#35419 [Asn->Csd]: Bad example in PDOStatement:CloseCursor

From: Date: Sun, 27 Nov 2005 06:46:07 +0000
Subject: #35419 [Asn->Csd]: Bad example in PDOStatement:CloseCursor
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371017@lists.php.net to get a copy of this message
ID: 35419 Updated by: dbs@php.net Reported By: mbuchmann at shaw dot ca -Status: Assigned +Status: Closed Bug Type: Documentation problem Operating System: n/a PHP Version: Irrelevant Assigned To: dbs Previous Comments: ------------------------------------------------------------------------ [2005-11-27 07:45:45] dbs@php.net This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Thanks for the catch! ------------------------------------------------------------------------ [2005-11-27 05:18:11] mbuchmann at shaw dot ca Description: ------------ Example #1 in http://ca.php.net/manual/en/function.pdostatement-closecursor.php It's supposed to create two statement handles $stmt and $otherStmt, but uses only $stmt in the ->prepare() calls. Therefore $otherStmt is never defined in that code snippet, but is called Reproduce code: --------------- n/a Expected result: ---------------- Second line of example code should return to $otherStmt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35419&edit=1

« previous php.doc (#969371017) next »