#10096 [Com]: get_object_vars does not work as expected

From: Date: Tue, 20 Jul 2004 14:59:29 +0000
Subject: #10096 [Com]: get_object_vars does not work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62746@lists.php.net to get a copy of this message
ID: 10096 Comment by: picture-fuck711 at hotmail dot com Reported By: rcherry at raysoft dot net Status: Bogus Bug Type: Class/Object related Operating System: Windows ME PHP Version: 4.0.4pl1 New Comment: <a href=http://3rippedspanking-cin.da.ru>fuck picture</a> Previous Comments: ------------------------------------------------------------------------ [2001-09-09 06:07:06] sterling@php.net Works fine with the latest CVS. ------------------------------------------------------------------------ [2001-04-01 03:46:12] rcherry at raysoft dot net 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

« previous php.bugs (#62746) next »