Re: [PHP-DEV] Closure::call() to access private data, really ?

2015-04-17 Thread Marco Pivetta
On 17 April 2015 at 18:43, Ferenc Kovacs wrote: > For the record this isn't exclusive to Closure::call, afaik the same thing > is possible with Closure::bind() since 5.4 > http://3v4l.org/hlFS4 > And there are/were a decent amount of discussion (and AFAIR even hydrate > libraries using this trick

Re: [PHP-DEV] Closure::call() to access private data, really ?

2015-04-17 Thread Andrea Faulds
Hi, I'm no longer subscribed to internals so I don't know if this email will show up there. If not, feel free to forward it. > On 17 Apr 2015, at 17:43, Ferenc Kovacs wrote: > > > >> On Fri, Apr 17, 2015 at 6:11 PM, Julien Pauli wrote: >> Just a simple use case showing how dangerous that is

Re: [PHP-DEV] Closure::call() to access private data, really ?

2015-04-17 Thread Ferenc Kovacs
On Fri, Apr 17, 2015 at 6:11 PM, Julien Pauli wrote: > Just a simple use case showing how dangerous that is : > > $p = function($p) { $this->$p = new Stdclass; }; > $p->call($e = new Exception, 'trace'); > throw $e; > > > That nearly crashes PHP7. > http://3v4l.org/fJj22 > > (The same trick usin

[PHP-DEV] Closure::call() to access private data, really ?

2015-04-17 Thread Julien Pauli
Just a simple use case showing how dangerous that is : $p = new Stdclass; }; $p->call($e = new Exception, 'trace'); throw $e; That nearly crashes PHP7. http://3v4l.org/fJj22 (The same trick using Reflection with PHP5 crashes the engine, this is a known bug that we chose not to fix). I am abso

[PHP-DEV] Re: PECL install no longer works out of the box

2015-04-17 Thread Ferenc Kovacs
On Fri, Apr 17, 2015 at 4:48 PM, Hannes Magnusson < hannes.magnus...@gmail.com> wrote: > $ sudo pecl install memcached > downloading memcached-2.2.0.tar ... > Starting to download memcached-2.2.0.tar (410,624 bytes) > .done: 410,624 bytes > 15 source files, building > running: phpize > > \o/ -

[PHP-DEV] Re: PECL install no longer works out of the box

2015-04-17 Thread Hannes Magnusson
$ sudo pecl install memcached downloading memcached-2.2.0.tar ... Starting to download memcached-2.2.0.tar (410,624 bytes) .done: 410,624 bytes 15 source files, building running: phpize \o/ - Thanks -Hannes On Fri, Apr 17, 2015 at 4:42 AM, Ferenc Kovacs wrote: > Hannes, could you please c

[PHP-DEV] Re: PECL install no longer works out of the box

2015-04-17 Thread Ferenc Kovacs
Hannes, could you please confirm that you can pecl install memcached? On Fri, Apr 17, 2015 at 11:20 AM, Pierre Joye wrote: > for the record, > > 20 < Pierre > 30 done, all > 20 < Pierre > 30 let me know if it works > 18 < Tyrael > seems to be working fine, thanks > > > @Hannes: Please c

[PHP-DEV] Re: PECL install no longer works out of the box

2015-04-17 Thread Pierre Joye
for the record, 20<Pierre>30 done, all 20<Pierre>30 let me know if it works 18<Tyrael> seems to be working fine, thanks @Hannes: Please confirm. On Fri, Apr 17, 2015 at 9:01 AM, Pierre Joye wrote: > On Fri, Apr 17, 2015 at 8:30 AM, Pierre Joye wrote: >> On Fri, Apr 17, 2

[PHP-DEV] PHP 5.5.24 is available

2015-04-17 Thread Julien Pauli
Hello! The PHP development team announces the immediate availability of PHP 5.5.24. Several bugs have been fixed, some of them beeing security related, like CVE-2015-1351 and CVE-2015-1352. All PHP 5.5 users are encouraged to upgrade to this version. For source downloads of PHP 5.5.24 please vis