ID: 17752 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: Class/Object related +Bug Type: Documentation problem Operating System: Lunix PHP Version: 4.2.1 New Comment:
This is correct behavior (and yes, it changed), making it a documentation problem. Derick Previous Comments: ------------------------------------------------------------------------ [2002-06-13 15:46:12] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=17752&edit=1