Re: ReflectionClass::newInstanceWithoutConstructor()

From: Date: Thu, 25 Aug 2011 16:16:45 +0000
Subject: Re: ReflectionClass::newInstanceWithoutConstructor()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
2011/8/25 Gustavo Lopes <[email protected]>:
> You could fetch the parent and do the same check, and so on.

Checking only the topmost should be enough if traversing the whole
inheritance could be avoided.

> 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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php


Thread (23 messages)

« previous php.internals (#54947) next »