From:             adam at trachtenberg dot com
Operating system: *
PHP version:      5CVS-2004-01-27 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  SPL: ArrayObject does not handle PPP correctly

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

-- 
Edit bug report at http://bugs.php.net/?id=27063&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27063&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27063&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27063&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27063&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27063&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27063&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27063&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27063&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27063&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27063&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27063&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27063&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27063&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27063&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27063&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27063&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27063&r=float

Reply via email to