Edit report at http://bugs.php.net/bug.php?id=20656&edit=1

 ID:               20656
 Updated by:       johan...@php.net
 Reported by:      publicNO at SPAM dot itsminimal dot com
 Summary:          Feature Request: mysql_fetch_object as user defined
                   class
-Status:           Open
+Status:           Bogus
 Type:             Feature/Change Request
-Package:          Feature/Change Request
+Package:          *General Issues
 Operating System: *
 PHP Version:      5*
 Assigned To:      helly

 New Comment:

The mysql extension won't get new features. Use mysqli or PDO or such.


Previous Comments:
------------------------------------------------------------------------
[2004-01-11 19:39:19] he...@php.net

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

------------------------------------------------------------------------
[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/bug.php?id=20656&edit=1

Reply via email to