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 internals+get-54947@lists.php.net to get a copy of this message
2011/8/25 Gustavo Lopes <glopes@nebm.ist.utl.pt>: > 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

« previous php.internals (#54947) next »