php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69775 fetchColumn() example is misleading
Submitted: 2015-06-08 19:34 UTC Modified: 2015-06-09 07:08 UTC
From: cmb@php.net Assigned: sobak (profile)
Status: Closed Package: PDO Core
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

 [2015-06-08 19:34 UTC] cmb@php.net
Description:
------------
---
From manual page: http://www.php.net/pdostatement.fetchcolumn
---

As can be seen from the user contributes notes, example#1 on the
PDOStatement::fetchColumn man page is apparently misleading. It
might be best to change it (see attached patch
fetchcolumn-example).

Then the following notes can be deleted:
 * <http://php.net/manual/en/pdostatement.fetchcolumn.php#115694>
 * <http://php.net/manual/en/pdostatement.fetchcolumn.php#117420>
 * <http://php.net/manual/en/pdostatement.fetchcolumn.php#116646>


Patches

fetchcolumn-example (last revision 2015-06-08 19:34 UTC by cmb)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-08 19:34 UTC] cmb@php.net
-Package: PDO SQLite +Package: PDO Core
 [2015-06-09 07:07 UTC] sobak@php.net
Automatic comment from SVN on behalf of sobak
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=336896
Log: Close bug #69775 (fetchColumn() example is misleading)

Patch by cmb
 [2015-06-09 07:08 UTC] sobak@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: sobak
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 22:01:26 2019 UTC