Doc #51809 [NEW]: Missing information in PDOStatement->fetchAll docs
| From: | smrank at zepler dot org | Date: | Thu, 13 May 2010 11:09:06 +0000 |
| Subject: | Doc #51809 [NEW]: Missing information in PDOStatement->fetchAll docs | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4363@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.2
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Missing information in PDOStatement->fetchAll docs
Description:
------------
On the following page for PDOStatement->fetchAll, the text leaves out some
pretty important information:
http://uk2.php.net/manual/en/pdostatement.fetchall.php
If the first argument is PDO::FETCH_COLUMN then the second argument is
treated as the column index (this is mentioned on the page). However, if
the first argument is PDO::FETCH_CLASS then the second argument is treated
as the class name, this is not mentioned at all as far as I can see. The
page does say that these fetch styles are documented on the fetch() page
but that doesn't help since AFAICS fetch() doesn't allow the class name to
be specified as the second argument, that feature is specific to
fetchAll().
--
Edit bug report at http://bugs.php.net/bug.php?id=51809&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51809&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51809&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51809&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51809&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51809&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51809&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51809&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51809&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51809&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51809&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51809&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51809&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51809&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51809&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51809&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51809&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51809&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51809&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51809&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51809&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51809&r=mysqlcfg