Re: ReflectionClass::newInstanceWithoutConstructor()

From: Date: Thu, 25 Aug 2011 12:54:38 +0000
Subject: Re: ReflectionClass::newInstanceWithoutConstructor()
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Thu, 25 Aug 2011 13:41:27 +0100, Sebastian Bergmann <[email protected]> wrote:

On 08/25/2011 01:46 PM, Gustavo Lopes wrote:
What about userland classes that extend internal classes?
Good point. How would I implement such a check?
You could fetch the parent and do the same check, and so on. I think you might be able to just check whether ce.create_object is not NULL, because if the internal class doesn't replace create_object, there's no chance of that class of crashes occurring; plus, they're propagated to the subclasses. -- Gustavo Lopes

Thread (23 messages)

« previous php.internals (#54941) next »