For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2005 > #35419 [Asn->Csd]: Bad example in PDOStatement:CloseCursor









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #35419 [Asn->Csd]: Bad example in PDOStatement:CloseCursor
dbs@php.net

2005-11-27, 3:56 am

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/functio...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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com