Bug #53366 [Opn->Fbk]: Reflection doesnt show propreties from mysqli_fetch_object("UserClass")

From: Date: Sat, 20 Nov 2010 14:04:13 +0000
Subject: Bug #53366 [Opn->Fbk]: Reflection doesnt show propreties from mysqli_fetch_object("UserClass")
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156250@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53366&edit=1

 ID:                 53366
 Updated by:         felipe@php.net
 Reported by:        jorgevpinho at gmail dot com
 Summary:            Reflection doesnt show propreties from
                     mysqli_fetch_object("UserClass")
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Reflection related
 Operating System:   WinXP SP3
 PHP Version:        5.2.13
 Block user comment: N
 Private report:     N

 New Comment:

And using ReflectionObject instead?


Previous Comments:
------------------------------------------------------------------------
[2010-11-20 13:47:25] jorgevpinho at gmail dot com

I mistyped the last line on Test script :

$reflect->getProperty('property1'); // breaks

------------------------------------------------------------------------
[2010-11-20 13:45:05] jorgevpinho at gmail dot com

Description:
------------
---
From manual page: http://www.php.net/reflectionclass.getproperties
---


Test script:
---------------
class UserClass {

}

$myClass = $mysqli_rs->fetch_object("UserClass");

$reflect = new ReflectionClass($myClass);

echo($myClass->property1); //works

$reflect->getProperty('titulo'); // breaks



Expected result:
----------------
no error



------------------------------------------------------------------------



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


Thread (6 messages)

« previous php.bugs (#156250) next »