RE: [PHP-DEV] Exposing object handles to userland

From: Date: Fri, 31 Jul 2015 17:43:23 +0000
Subject: RE: [PHP-DEV] Exposing object handles to userland
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-87447@lists.php.net to get a copy of this message
> -----Original Message----- > From: nicolas.grekas@gmail.com [mailto:nicolas.grekas@gmail.com] On Behalf > Of Nicolas Grekas > Sent: Friday, July 31, 2015 6:11 PM > To: Anatol Belski <anatol.php@belski.net> > Cc: Julien Pauli <jpauli@php.net>; PHP Internals <internals@lists.php.net>; > Sebastian Bergmann <sebastian@php.net>; Ivan Enderlin@Hoa > <ivan.enderlin@hoa-project.net>; contact@jubianchi.fr > Subject: Re: [PHP-DEV] Exposing object handles to userland > > > > > Have you checked the impact of changing the existing function? > > > > Yes I did, and this breaks absolutely nothing: the spl_object_hash output has > exactly the same format (otherwise it's a bug). > > > > > > > > <https://github.com/sebastianbergmann/phpunit/search?utf8=%E2%9C%93&q= > > spl_object_hash> > > > > > > > > https://github.com/symfony/symfony/blob/master/src/Symfony/Component/V > > arDumper/Cloner/VarCloner.php > > > > That's my code and the very place where I'd use this feature first :) Yeah, saw your name in the commits :) Anthony's argument about exposing the mem layout is crucial, though. Regards anatol

« previous php.internals (#87447) next »