Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70375 invoked from network); 31 Jul 2015 16:07:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2015 16:07:22 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:42533] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/44-47755-83D9BB55 for ; Fri, 31 Jul 2015 12:07:20 -0400 Received: by h1123647.serverkompetenz.net (Postfix, from userid 1006) id D17DF23D629F; Fri, 31 Jul 2015 18:07:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on h1123647.serverkompetenz.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE,URIBL_BLOCKED autolearn=unavailable version=3.3.2 Received: from w530phpdev (pD9FE8EAF.dip0.t-ipconnect.de [217.254.142.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id F325923D6003; Fri, 31 Jul 2015 18:07:12 +0200 (CEST) To: "'Nicolas Grekas'" , "'Julien Pauli'" Cc: "'PHP Internals'" , "'Sebastian Bergmann'" , "'Ivan Enderlin@Hoa'" , References: In-Reply-To: Date: Fri, 31 Jul 2015 18:07:13 +0200 Message-ID: <024101d0cbaa$f864aa50$e92dfef0$@belski.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0242_01D0CBBB.BBED7A50" X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQEZxEz2AZ24oXNpNMxONv1anupciAKrx7Ayn05heUA= Content-Language: en-us Subject: RE: [PHP-DEV] Exposing object handles to userland From: anatol.php@belski.net ("Anatol Belski") ------=_NextPart_000_0242_01D0CBBB.BBED7A50 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Nicolas, =20 Have you checked the impact of changing the existing function? Like =20 https://github.com/sebastianbergmann/phpunit/search?utf8=3D%E2%9C%93 = &q=3Dspl_object_hash https://github.com/symfony/symfony/blob/master/src/Symfony/Component/VarD= umper/Cloner/VarCloner.php https://github.com/horde/horde/blob/master/imp/lib/Factory/MimeViewer.php= https://github.com/horde/horde/blob/master/framework/Support/lib/Horde/Su= pport/Randomid.php https://github.com/WordPress/WordPress/blob/master/wp-includes/plugin.php= =20 Obviously there will be more. Seems some stuff even depends on the exact = output. So it would be most likely a BC break. =20 Now, I=E2=80=99d see this more like a feature request, as Julien was = mentioning another function at the start. But IMHO opinions from people = specializing on test/debug user land tools would give a better sight, so = CC=E2=80=99ing.=20 =20 Regards =20 Anatol =20 =20 =20 From: nicolas.grekas@gmail.com [mailto:nicolas.grekas@gmail.com] On = Behalf Of Nicolas Grekas Sent: Friday, July 31, 2015 4:53 PM To: Julien Pauli Cc: PHP Internals Subject: Re: [PHP-DEV] Exposing object handles to userland =20 =20 I also know people that print_r($an_object) and parse the output just to extract the object handle from there... Crazy isn't it ? =20 I plead guilty for doing this, but php let me no better choice for now = ;) The attached patch removes the XOR hashing for the object handle (it's = useless, the "secret" is trivially guessed after parsing the output of = var_dump). It would be awesome if this patch could be applied for php 7.0! Cheers, Nicolas =20 ------=_NextPart_000_0242_01D0CBBB.BBED7A50--