|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48580 ArrayObject swallows properties (dump and reflection access) (PHP_5_2 only!)
Submitted: 2009-06-17 10:06 UTC Modified: 2009-09-27 01:00 UTC
From: Assigned:
Status: No Feedback Package: SPL related
PHP Version: 5.2.9 OS: Gentoo
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-06-17 10:06 UTC]
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) {

Actual result:
object(Bar)#1 (0) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-19 14:52 UTC]
Still not fixed in 5.2.11..? Can you check and update the version if 
 [2009-09-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 05:05:46 2022 UTC