ID: 10096
Updated by: sterling
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Class/Object related
Operating System: Windows ME
PHP Version: 4.0.4pl1
New Comment:
Works fine with the latest CVS.
Previous Comments:
------------------------------------------------------------------------
[2001-04-01 03:46:12] [EMAIL PROTECTED]
If variables within a class are set by the constructor, then get_object_vars works OK.
If they are set after the class object is constructed, then it doesn't work OK.
Example:
class a
{ var $b;
}
$aa = new a();
$aa->b = "Hi";
print_r(get_object_vars($aa); //Result will not be as expected.
This error is complicating an effort to persist a class.
===================
Related Issue: It does not appear possible to have a variable within a class which is
of type class. What a shame.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10096&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]