Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84028 invoked by uid 1010); 16 Jan 2007 21:53:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84012 invoked from network); 16 Jan 2007 21:53:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2007 21:53:44 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 81.169.182.136 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from [81.169.182.136] ([81.169.182.136:44967] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/6D-05231-7694DA54 for ; Tue, 16 Jan 2007 16:53:44 -0500 Received: from baumbart.mbo (dslb-084-063-070-014.pools.arcor-ip.net [84.63.70.14]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id E33BF35C1E0; Tue, 16 Jan 2007 22:53:40 +0100 (CET) Date: Tue, 16 Jan 2007 22:53:47 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <124387070.20070116225347@marcus-boerger.de> To: Evert|FileMobile Cc: Michael Wallner , internals@lists.php.net In-Reply-To: <45AD3537.7000802@filemobile.com> References: <287851093.20070115233131@marcus-boerger.de> <4E.F2.17729.56F7CA54@pb1.pair.com> <462213781.20070116201924@marcus-boerger.de> <45AD3537.7000802@filemobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Help debugging overloaded objects From: helly@php.net (Marcus Boerger) 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