Re: ReflectionClass::newInstanceWithoutConstructor()

From: Date: Thu, 25 Aug 2011 10:20:43 +0000
Subject: Re: ReflectionClass::newInstanceWithoutConstructor()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-54927@lists.php.net to get a copy of this message
hi, On Thu, Aug 25, 2011 at 11:46 AM, Sebastian Bergmann <sebastian@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

« previous php.internals (#54927) next »