|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-27 13:55 UTC] adam at trachtenberg dot com
[2004-01-27 14:05 UTC] helly@php.net
[2004-02-05 16:56 UTC] helly@php.net
[2004-04-22 22:16 UTC] helly@php.net
[2004-04-25 13:15 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ The ArrayObject class does not correctly set protected and private property names. Reproduce code: --------------- class Test { public $public = 'Public'; protected $protected = 'Protected'; private $private = 'Private'; } foreach (new ArrayObject(new Test) as $property => $value) { print "$property: $value\n"; } Expected result: ---------------- public: Public protected: Protected private: Private Actual result: -------------- public: Public *protected: Protected Testprivate: Private