php.net |  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
Votes:2
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
 [2013-07-29 18:07 UTC] kissifrot at gmail dot com
Description:
------------
Hello,
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-29 18:30 UTC] sixd@php.net
-Assigned To: +Assigned To: sixd
 [2017-10-24 08:02 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: sixd +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 25 00:01:33 2024 UTC