Re: Re: Bug 67072 resolution for 5.4/5.5

From: Date: Tue, 24 Jun 2014 11:42:15 +0000
Subject: Re: Re: Bug 67072 resolution for 5.4/5.5
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-75059@lists.php.net to get a copy of this message
Le 24/06/2014 09:58, Stas Malyshev a écrit : > I understand that this creates a need that we do not cover of how to > mock such objects, and I welcome suggestions - including how to make > newInstanceArgWithoutConstructor safe. But currently I do not see how we > can leave the unserialize hack in for classes like SplFileObject - > unless somebody points me to a way to make it safe. Proposal, hawfull hack attached. Obviously, this doesn't make newInstanceWithoutConstructor safe ;) But this answer the need. And we can state in documentation. "force : allow to instantiate internal classes. Never use this !" And nobody could complain if this cause segfault. Remi.

« previous php.internals (#75059) next »