|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65354 Allow fetch_object to fetch into a specific class
Submitted: 2013-07-29 18:07 UTC Modified: 2013-07-29 18:30 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: kissifrot at gmail dot com Assigned: sixd
Status: Assigned Package: OCI8 related
PHP Version: 5.4.17 OS: Irrevelant
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-07-29 18:07 UTC] kissifrot at gmail dot com
Woudl it be possible to improve oci_fetch_object, to be able to specify the class of the object to fetch the data into, and such things? (to "align" the signature to PDO's fetch, or mysqli/pg_fetch_objct)

So the signature would be something like

object oci_fetch_object ( resource $statement [, string $class_name ] )

Where $class_name would be the name of the class to instantiate, set the properties of and return.

Expected result:
Possibility to specify a classname/object instance to fetch the data into

Actual result:
No possibility to specify a classname/object instance


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-29 18:30 UTC]
-Assigned To: +Assigned To: sixd
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC