hi, On Thu, Aug 25, 2011 at 11:46 AM, Sebastian Bergmann <sebast...@php.net> wrote: > I have attached a patch to https://bugs.php.net/bug.php?id=55490 that > implements ReflectionClass::newInstanceWithoutConstructor() to create an > object a class without invoking the constructor. > > As there are certain internal classes that would "crash" when their > constructor is not invoked, this new method of the Reflection API only > works for userland-defined classes.
Looks good and as you do the check to avoid internal classes, that's all good :) Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php