Req #65354 [NEW]: Allow fetch_object to fetch into a specific class

From: Date: Mon, 29 Jul 2013 18:07:26 +0000
Subject: Req #65354 [NEW]: Allow fetch_object to fetch into a specific class
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-180541@lists.php.net to get a copy of this message
From:             kissifrot at gmail dot com
Operating system: Irrevelant
PHP version:      5.4.17
Package:          OCI8 related
Bug Type:         Feature/Change Request
Bug description:Allow fetch_object to fetch into a specific class

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 bug report at https://bugs.php.net/bug.php?id=65354&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=65354&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=65354&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=65354&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65354&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65354&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65354&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65354&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65354&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65354&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65354&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=65354&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=65354&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65354&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65354&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65354&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65354&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65354&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65354&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65354&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65354&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#180541) next »