Re: ReflectionClass::newInstanceWithoutConstructor()
| From: | Gustavo Lopes | 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 internals+get-54941@lists.php.net to get a copy of this message | ||
On Thu, 25 Aug 2011 13:41:27 +0100, Sebastian Bergmann <sebastian@php.net> wrote:
On 08/25/2011 01:46 PM, Gustavo Lopes wrote: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 LopesWhat about userland classes that extend internal classes?Good point. How would I implement such a check?