|  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: 2017-10-24 08:02 UTC
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: kissifrot at gmail dot com Assigned:
Status: Open Package: OCI8 related
PHP Version: 5.4.17 OS: Irrevelant
Private report: No CVE-ID: None
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
 [2017-10-24 08:02 UTC]
-Status: Assigned +Status: Open -Assigned To: sixd +Assigned To:
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 21:01:28 2023 UTC