Doc #53394 [Ver->Csd]: Insufficient docs regarding PDOStatement::fetch(Object) and constructors

From: Date: Wed, 29 Jun 2016 11:04:32 +0000
Subject: Doc #53394 [Ver->Csd]: Insufficient docs regarding PDOStatement::fetch(Object) and constructors
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13647@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53394&edit=1 ID: 53394 Updated by: cmb@php.net Reported by: public at grik dot net Summary: Insufficient docs regarding PDOStatement::fetch(Object) and constructors -Status: Verified +Status: Closed Type: Documentation Problem Package: PDO related PHP Version: 5.3.3 Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2016-06-29 11:03:42] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=339520 Log: Fix #53394: Insufficient docs regarding PDOStatement::fetch(Object) and constructors ------------------------------------------------------------------------ [2010-11-24 23:49:28] felipe@php.net Right, it needs be documented. ------------------------------------------------------------------------ [2010-11-24 23:32:49] public at grik dot net It's not bogus. It is a documentation issue at least. I guess, it needs to be described somewhere beyond the bugtracker. all I see in docs is: PDO::FETCH_PROPS_LATE ( integer ) Available since PHP 5.2.0 ------------------------------------------------------------------------ [2010-11-24 22:16:34] felipe@php.net Hi, there was a discussion about this, see bug #49521 You could do something like this: $a = $PDO->query('select id from links'); $a->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'ArraySlice'); $a = $a->fetch(); var_dump($a->id, $a['id']); Thanks. ------------------------------------------------------------------------ [2010-11-24 15:27:19] tony2001@php.net Felipe, could you check this out plz? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=53394 -- Edit this bug report at https://bugs.php.net/bug.php?id=53394&edit=1

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