Bug #52834 [NEW]: Mistake in example: all rows should be fetched from rowset

From: Date: Tue, 14 Sep 2010 07:35:41 +0000
Subject: Bug #52834 [NEW]: Mistake in example: all rows should be fetched from rowset
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5022@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Bug Bug description:Mistake in example: all rows should be fetched from rowset 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. -- Edit bug report at http://bugs.php.net/bug.php?id=52834&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52834&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52834&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52834&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52834&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52834&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52834&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52834&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52834&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52834&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52834&r=support Expected behavior: http://bugs.php.net/fix.php?id=52834&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52834&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52834&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52834&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52834&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52834&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52834&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52834&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52834&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52834&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52834&r=mysqlcfg

« previous php.doc.bugs (#5022) next »