ID: 20656 Updated by: [EMAIL PROTECTED] Reported By: publicNO at SPAM dot itsminimal dot com Status: Open Bug Type: Feature/Change Request -Operating System: n/a +Operating System: * -PHP Version: 4.2.2 +PHP Version: 5* -Assigned To: +Assigned To: helly New Comment:
pgsql, SQLite, mysqli and pdo support the following function in PHP5: object mysqli_fetch_object (object result [, string class_name [, NULL|array ctor_params]]) I will adatpt this to mysql for completeness. Anyway there will be no new functionality in PHP4.3.x Previous Comments: ------------------------------------------------------------------------ [2004-01-10 12:11:55] php at thekid dot de Sybase-CT supports this: http://php.net/manual/en/function.sybase-fetch-object.php Porting this to MySQL should be no problem. ------------------------------------------------------------------------ [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