Re: ReflectionClass::newInstanceWithoutConstructor()
| From: | Sebastian Bergmann | Date: | Thu, 25 Aug 2011 13:27:33 +0000 |
| Subject: | Re: ReflectionClass::newInstanceWithoutConstructor() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54942@lists.php.net to get a copy of this message | ||
On 08/25/2011 02:54 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.I updated the patch accordingly. Thanks! -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/