Re: ReflectionClass::newInstanceWithoutConstructor()

From: Date: Thu, 25 Aug 2011 12:43:36 +0000
Subject: Re: ReflectionClass::newInstanceWithoutConstructor()
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 08/25/2011 02:39 PM, Etienne Kneuss wrote:
To me this feature makes no sense. But if people find use for it and it remains in Reflection, I won't object to it, so +0.
It should only be used for meta programming, of course ;-)
If an internal class can't behave well without a constructor call, that should already be fixed/prevented, as it's already possible by extending it.
I second that emotion but as long as those internal classes are not fixed I think it makes sense to disallow creating objects of internal classes without invoking their constructor. -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/

Thread (23 messages)

« previous php.internals (#54934) next »