Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6073 invoked from network); 9 Dec 2014 16:44:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2014 16:44:16 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.180 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.217.180 mail-lb0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:52550] helo=mail-lb0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/23-23416-FD627845 for ; Tue, 09 Dec 2014 11:44:15 -0500 Received: by mail-lb0-f180.google.com with SMTP id l4so804524lbv.39 for ; Tue, 09 Dec 2014 08:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=PChcuEQxz8qvTVFI+diaBCgdsetrxX1hqWfrk8ecEOU=; b=qg37p0LqluSkTx3TUgrX84HS8JhQtIqGIFxwqsyq5qo4X2wILp6MBHz2+dpPuSsg46 VLM4pqiQcO6ZCmwvgXvd+PHC7ZQ+yHCkYzXrIXXyvWrSjIjd+dLzFzmVIuAscdKNU5GS NvxHuOpJLAlAD4tbzg2QRSdQxuu1Kb8Q9xoBnfcDGXjL3DXr1nWJzUOseu77ASiv48ni kSGtPYxkX685hvcEuM5M6w5DfzYLqG9rs+GzEt5jiy2EwrK6mx0FPWE+Ykfo+2MI75Zq TGUjmYk/KpHk6wBbGBSb3PLYwrWmpIru1Mf5LjdkznSL4MPNhzM2o4cUjpGpdwx4FfnD kMGA== X-Received: by 10.112.63.99 with SMTP id f3mr3350610lbs.47.1418143452508; Tue, 09 Dec 2014 08:44:12 -0800 (PST) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.152.110.230 with HTTP; Tue, 9 Dec 2014 08:43:52 -0800 (PST) In-Reply-To: <548716F7.4090007@gmail.com> References: <5486DA89.3090605@gmail.com> <548716F7.4090007@gmail.com> Date: Tue, 9 Dec 2014 17:43:52 +0100 X-Google-Sender-Auth: MmWLsdRegcUUvm25m_A58B5KZu0 Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c3d1e8ba38c10509cb40bc Subject: Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle() From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --001a11c3d1e8ba38c10509cb40bc Content-Type: text/plain; charset=UTF-8 > t would not be a BC break to completely change the output I agree! This could be as simple as removing the XOR for the first part of the hash string (the first 16 chars) and expose the internal object's handle there. This is already leaked by the output of var_dump so not a pb imho. And BC is kept. 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. --001a11c3d1e8ba38c10509cb40bc--