|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-19 14:52 UTC] jani@php.net
[2009-09-27 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 11:00:01 2025 UTC |
Description: ------------ Attributes defined in classes deriving from ArrayObject do not show up in var_dump() and cannot be accessed via Reflection. Note that this is fixed in 5.3 already. Reproduce code: --------------- class Bar extends ArrayObject { protected $foo = 23; private $bar = 42; } var_dump( new Bar() ); Expected result: ---------------- object(Bar)#1 (0) { ["foo:protected"]=> int(23) ["bar:private"]=> int(42) } Actual result: -------------- object(Bar)#1 (0) { }