Re: ReflectionClass::newInstanceWithoutConstructor()
| From: | Kalle Sommer Nielsen | Date: | Thu, 25 Aug 2011 12:47:06 +0000 |
| Subject: | Re: ReflectionClass::newInstanceWithoutConstructor() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54935@lists.php.net to get a copy of this message | ||
Hi
2011/8/25 Sebastian Bergmann <sebastian@php.net>:
> Good point. How would I implement such a check?
Speaking of which, wouldn't it be easier to check all our internal
classes for such failures and fix them accordingly with this addition
(Fix the dont-crash-without-calling-constructor)?
We could do like that of above and cast an exception instead of
E_RECOVERABLE_ERROR (as I believe is being cast now) in 5.4.
--
regards,
Kalle Sommer Nielsen
kalle@php.net