Bug #17752: get_object_vars behaviour changed

From: Date: Thu, 13 Jun 2002 19:46:12 +0000
Subject: Bug #17752: get_object_vars behaviour changed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10378@lists.php.net to get a copy of this message
From: michael@kimsal.com Operating system: Lunix PHP version: 4.2.1 PHP Bug Type: Class/Object related Bug description: get_object_vars behaviour changed We have class code such as the following: class foo { var $bar1; var $bar2; var $bar3; } Per the documentation, and previous experience, if I put a value only in $bar2, get_object_vars() on the foo object would return only $bar2. In PHP4.2.1 the behaviour now returns bar1, bar2 and bar3, regardless of whether they have values or not. This is contrary to the documentation, and was extremely annoying to try to track down to boot. -- Edit bug report at http://bugs.php.net/?id=17752&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17752&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17752&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17752&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17752&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17752&r=support Expected behavior: http://bugs.php.net/fix.php?id=17752&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17752&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17752&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17752&r=globals

« previous php.bugs (#10378) next »