Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79513 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24670 invoked from network); 9 Dec 2014 19:34:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2014 19:34:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wg0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:33960] helo=mail-wg0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/D2-09154-EAE47845 for ; Tue, 09 Dec 2014 14:34:06 -0500 Received: by mail-wg0-f48.google.com with SMTP id y19so1744995wgg.21 for ; Tue, 09 Dec 2014 11:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=SQRftMuneCR5xQ8FCLdbb8emiVIw0exHKL27RERkNI8=; b=IsgSPFicF65kSxLn/nGtjP1to1KVL9ZRIdcci84HoZztWfEvYMBRuNG9wHHhIQZWuu O/FLnTuw42c5nHM/PkGdLLLpsFz7rWrYJCRaUfueAmcYR7A7RlTULFtg+xhFfm/3wGfP wFNozgxnxeTud3pkUmVqkONJfnhj+GNWfojjAYAYTwwIcuDd1sqhi5YycPopDI6vHtfS dSLnn+nDtFzX2OIVAr7GLc4234Rsg7b0hJOt9wJmTZGXK++/s4+wk1H8PD70RVJTahZQ CqugeTadM2BEfhwZfZ8N2+H6jv7GOH86zY8YLVdXyLZEOgR+kp656fPftLBbJeljAmco UAMA== X-Received: by 10.194.88.169 with SMTP id bh9mr7311994wjb.99.1418153642603; Tue, 09 Dec 2014 11:34:02 -0800 (PST) Received: from [192.168.0.3] (cpc68956-brig15-2-0-cust215.3-3.cable.virginm.net. [82.6.24.216]) by mx.google.com with ESMTPSA id d2sm2989073wjs.32.2014.12.09.11.34.01 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Dec 2014 11:34:01 -0800 (PST) User-Agent: K-9 Mail for Android In-Reply-To: References: <5486DA89.3090605@gmail.com> <548716F7.4090007@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Tue, 09 Dec 2014 19:32:57 +0000 To: "internals@lists.php.net" Message-ID: <6A8132AD-034A-4DD8-B289-1D35704A3004@gmail.com> Subject: Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle() From: rowan.collins@gmail.com (Rowan Collins) On 9 December 2014 16:43:52 GMT, Nicolas Grekas wrote: >Indeed. A non-function version of debug_zval_dump which could do this >on >> any variable would be even better (if I read it right, your function >only >> works on array members?) >> > >Not sure this is required: any variable can be put in an array for this >purpose thanks to get_defined_vars() and the (array) cast operator for >objects. Sure, but like the function call, doing so just to send it to the debugger changes some of the information you're trying to see - it must increase the refcount, and in some situations could presumably mess up references too. It would also be nice if you didn't have to think about such things, and could just use it on any variable reference, like you could isset(). -- Rowan Collins [IMSoP]