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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: samokhinvadim at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 01:01:33 2025 UTC