php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35419 Bad example in PDOStatement:CloseCursor
Submitted: 2005-11-27 05:18 UTC Modified: 2005-11-27 07:46 UTC
From: mbuchmann at shaw dot ca Assigned: dbs (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mbuchmann at shaw dot ca
New email:
PHP Version: OS:

 

 [2005-11-27 05:18 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-27 07:45 UTC] 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!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC