ArrayObject does not handle PPP correctly
| Bug #27063 | SPL: ArrayObject does not handle PPP correctly | ||||
|---|---|---|---|---|---|
| Submitted: | 2004-01-27 13:47 UTC | Modified: | 2004-04-25 13:15 UTC | ||
| From: | adam at trachtenberg dot com | Assigned: | helly (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.0.0RC2 | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2004-01-27 13:47 UTC] adam at trachtenberg dot com
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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-01-27 13:55 UTC] adam at trachtenberg dot com
[2004-01-27 14:05 UTC] helly@php.net
[2004-04-25 13:15 UTC] helly@php.net