-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add get_mangled_object_vars() function #4163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I would prefer if this was named something like |
@KalleZ Agreed and done! |
Thanks for your work, just: typo "mandled" in test filename (and commit messages also) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a test change required: could you please use var_export()
, so that \0
in keys are visible?
@Ocramius Done! |
Wouldn't this be better as part of |
@Majkl578 This would have to be on |
@nikic Likely both, what I meant was |
@Majkl578 We could add getMangledName(). Any particular use you have in mind for it? |
@staabm The correct phrasing of the word is |
@staabm Apart from the suggestion being grammatically incorrect, was it really necessary to send the same suggested edit 9 times, each as a separate comment (not as part of a review), each sending out a new email? Please don't do that. |
I just realized this. thx for the hint.
very sorry about that. will be more carefully next time. sorry for the noise. |
@Majkl578 Thanks! Sounds like a good addition then. Would you like to submit a PR? Otherwise I can do it. |
Sure, could try that. :) |
Merged as eecd896 into 7.4. |
This function provides the same functionality as
(array) $object
, with the caveat that it is not affected by any overloaded(array)
casts. In particular it will always provide the real object properties forArrayObject
and derived classes, even if the STD_PROP_LIST flag is not set.