#20656 [Com]: Feature Request: mysql_fetch_object as user defined class

From: Date: Sat, 10 Jan 2004 17:11:55 +0000
Subject: #20656 [Com]: Feature Request: mysql_fetch_object as user defined class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53068@lists.php.net to get a copy of this message
ID: 20656 Comment by: php at thekid dot de Reported By: publicNO at SPAM dot itsminimal dot com Status: Open Bug Type: Feature/Change Request Operating System: n/a PHP Version: 4.2.2 New Comment: Sybase-CT supports this: http://php.net/manual/en/function.sybase-fetch-object.php Porting this to MySQL should be no problem. Previous Comments: ------------------------------------------------------------------------ [2002-11-26 13:02:31] publicNO at SPAM dot itsminimal dot com I think it would be very useful to be able to specify the class of the object returned by mysql_fetch_object. So perhaps the syntax would be mysql_fetch_object ( resource result, classname ) and the object returned would have all the properties and methods of the user defined class, in addition to having properties that correspond to the fetched row ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20656&edit=1

« previous php.bugs (#53068) next »