php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52834 Mistake in example: all rows should be fetched from rowset
Submitted: 2010-09-14 09:35 UTC Modified: 2010-09-14 11:41 UTC
From: samokhinvadim at gmail dot com Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2010-09-14 09:35 UTC] samokhinvadim at gmail dot com
Description:
------------
There is a mistake in example here:

$rowset = $stmt->fetch(PDO::FETCH_NUM);

It should be 

$rowset = $stmt->fetchAll(PDO::FETCH_NUM);

as all rows shiuld be returned from the current rowset.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-14 11:41 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=303356
Log: Correct example to fetch all rows from rowset. Fix #52834
 [2010-09-14 11:41 UTC] rquadling@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rquadling
 [2010-09-14 11:41 UTC] rquadling@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=876087d2c34404f3f356631423b408a92c39a642
Log: Correct example to fetch all rows from rowset. Fix #52834
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 23:01:31 2024 UTC