Re: ReflectionClass::newInstanceWithoutConstructor()
| From: | Sebastian Bergmann | 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 internals+get-54934@lists.php.net 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/