Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72290 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65900 invoked from network); 5 Feb 2014 20:01:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 20:01:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.160.51 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.160.51 mail-pb0-f51.google.com Received: from [209.85.160.51] ([209.85.160.51:35082] helo=mail-pb0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/35-38005-0B892F25 for ; Wed, 05 Feb 2014 15:01:53 -0500 Received: by mail-pb0-f51.google.com with SMTP id un15so805526pbc.24 for ; Wed, 05 Feb 2014 12:01:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jT14DFp5zubQEQnk3Q6N7NwGhzvKSZ5S9+KYJdbMlhU=; b=lNczZ1g0YXXFuujdvSqq5t19aUZJMl8q0CYAIMB0DVYXs7b+9pgiZLH06JRLqcpZ27 vTSMwfwyjFG/0GLRdGnZ3urdgHILWtX2y/owX59LwW0eSike5WFWtRaACE9hG1bRZJ/F i7ye3ki/IF1y7LqsdFz7sG86Eor87Sr3ynL+Mz50l3/Owez5HJnz5ZUhgceBx21k/God GLycAFm9AaCNvKTbNn/0LIZ/IGEFvKefqwjfWDDNsF/RNVI60QaTu5PSfpKTDmN4oCLy /2OAlrpcB2lO74yayGmI7swYWYW3P3/OjyjNrZw9mG8+343iHlHGyCMf5OLQkL7fWpE+ ZDGg== X-Gm-Message-State: ALoCoQnrsHbpeM4JLgNCDvbLJAyAqM+xHv0x79nGlBIXAUr9wvrxmrfGJMMM50hmo8GCAFQNwffl MIME-Version: 1.0 X-Received: by 10.68.209.193 with SMTP id mo1mr5040128pbc.38.1391630509997; Wed, 05 Feb 2014 12:01:49 -0800 (PST) Sender: php@golemon.com Received: by 10.70.38.234 with HTTP; Wed, 5 Feb 2014 12:01:49 -0800 (PST) X-Originating-IP: [2620:0:1cfe:18:22c9:d0ff:fe87:295b] In-Reply-To: <52F29152.3070202@gmail.com> References: <52F00437.7010903@googlemail.com> <52F005E6.6090702@googlemail.com> <52F0D36B.7010905@googlemail.com> <52F29152.3070202@gmail.com> Date: Wed, 5 Feb 2014 12:01:49 -0800 X-Google-Sender-Auth: FkcMWgOJ4LkZGxFaDb_psKl2joU Message-ID: To: Rowan Collins Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: pollita@php.net (Sara Golemon) On Wed, Feb 5, 2014 at 11:30 AM, Rowan Collins wrote: > Sara Golemon wrote (on 05/02/2014): >> (such as current uses in dom, >> sxe, mysqli, intl, and spl) > > If "sxe" in there means SimpleXML, I wish it would do a better job of it! > Yes, sxe is short for SimpleXML. :) > In fact, now that I know this hook exists, and doesn't affect the action of > array casts, I'm tempted to attempt a patch that would improve it, based on > the simplexml_tree function I've written at > https://github.com/IMSoP/simplexml_debug > Wanna lol? Here's sxe's current implementation of get_debug_info (in ext/simplexml/simplexml.c) static HashTable * sxe_get_debug_info(zval *object, int *is_temp TSRMLS_DC) { *is_temp = 1; return sxe_get_prop_hash(object, 1 TSRMLS_CC); } If you can even call that an implementation. :p If you're up to improving it, that's the spot to do it. -Sara