mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2107: Debug::dump lists the wrong access level for some attributes #2655
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 29, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user gzankevich:
\Doctrine\Common\Util\Debug::dump() shows the wrong access level for some attributes. The below code reproduces the bug:
\Doctrine\ORM\Query\Expr\Select and \Doctrine\ORM\Query\Expr\Base define a bunch of protected class attributes, however, the Dump method fails to indicate their correct access level.
Expected result:
Actual result:
@doctrinebot commented on GitHub (Feb 9, 2013):
Comment created by @asm89:
This is not a bug. It's the way the dumper works. The functionality of the dumper lies within limiting the depth of the dumping. It does this by reconstructing the object in an
stdClassobject. If you have xdebug installed this will show all the properties as public.@doctrinebot commented on GitHub (Feb 9, 2013):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Feb 9, 2013):
Comment created by @ocramius:
This is not a bug, but a limitation. Since values are copied over from a real instance into an
stdClass, we cannot reproduce the original object's property visibility