Req #65354 [Asn->Opn]: Allow fetch_object to fetch into a specific class

From: Date: Tue, 24 Oct 2017 08:03:09 +0000
Subject: Req #65354 [Asn->Opn]: Allow fetch_object to fetch into a specific class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212210@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65354&edit=1 ID: 65354 Updated by: kalle@php.net Reported by: kissifrot at gmail dot com Summary: Allow fetch_object to fetch into a specific class -Status: Assigned +Status: Open Type: Feature/Change Request Package: OCI8 related Operating System: Irrevelant PHP Version: 5.4.17 -Assigned To: sixd +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2013-07-29 18:07:26] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65354&edit=1

« previous php.bugs (#212210) next »