php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56290 PDO_FETCH_CLASS Doesn't work
Submitted: 2005-02-09 11:00 UTC Modified: 2005-02-13 12:45 UTC
From: davey@php.net Assigned: helly (profile)
Status: Closed Package: PDO (PECL)
PHP Version: 5_0 CVS-2005-02-09 (dev) OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: davey@php.net
New email:
PHP Version: OS:

 

 [2005-02-09 11:00 UTC] davey@php.net
Description:
------------
calling PDOStatement::setFetchMode() to PDO_FETCH_CLASS does not work. A stdClass() object is still returned from a query.

use any script that tries to set the PDO_FETCH_CLASS and var_dump the result to see it in action.

- Davey


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-10 19:30 UTC] davey@php.net
This bug is actually bogus as I've described it, however the classes constructor is not called. That is a known bug so feel free to bogus this one :)

- Davey
 [2005-02-13 12:45 UTC] helly@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

also have a look at: PDOStatement::fetchObject()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC