Hello Evert, assuming you mean that as an array cast you were wrong. If you convert a SimpleXML instance to an array you get either the current element, the current attribute or the text or all elements or all attributes. For ArrayObject/ArrayIterator you would get either the properties or a copy of the inner array.
But maybeyou are thinking of a new magic method. Ifso wellthat would be the use. But we don't have it and it is questionable whether we want that. Anybody on that part? best regards marcus Tuesday, January 16, 2007, 9:27:35 PM, you wrote: > Ignore this message if it doesn't make sense.. > wouldn't this essentially be the same as __toArray() ? > Evert > Marcus Boerger wrote: >> Hello Michael, >> >> ok current name and other options in one list: >> >> 1) get_debug_info() >> 2) get_debug_hash() >> 3) get_dump_vars() >> 4) get_dump_hash() >> >> does this list contain anythign you like? >> >> best regards >> marcus >> >> Tuesday, January 16, 2007, 8:32:41 AM, you wrote: >> >> >>> Marcus Boerger wrote: >>> >>>> Hello internals, >>>> >>>> the attached patch introduces a new handler to the engine that is >>>> supposed to help debugging overloaded objects. It allows to return a >>>> temporary hash rather then the object properties. This way an extension >>>> can show non properties in var_dump() and print_r(). It will be used >>>> in extensions like SimpleXML. To show how it will look like the changes >>>> for said extension are alsopresent. Last but not least the handler can >>>> be NULL in which case the old behavior is maintained. If noone objects >>>> I will commit this by the end of the week. >>>> >>>> Any comments? >>>> >> >> >>> A strong +1 from me. Though, I don't like the name of the handler... >>> >> >> >>> Regards, >>> -- >>> Michael >>> >> >> >> >> >> Best regards, >> Marcus >> >> Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php