|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-13 17:59 UTC] derick@php.net
[2002-07-01 18:34 UTC] nick_eby at bonzidev dot com
[2002-07-02 02:13 UTC] derick@php.net
[2002-07-03 19:32 UTC] nick_eby at bonzidev dot com
[2003-01-18 19:20 UTC] philip@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 09 22:00:01 2026 UTC |
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.