Re: ReflectionClass::newInstanceWithoutConstructor()
| From: | guilhermeblanco@gmail.com | Date: | Thu, 25 Aug 2011 15:12:51 +0000 |
| Subject: | Re: ReflectionClass::newInstanceWithoutConstructor() | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54945@lists.php.net to get a copy of this message | ||
Sebastian,
This is a hidden gem for us! =D
Thanks a lot for putting your effort into this.
Cheers,
On Thu, Aug 25, 2011 at 11:03 AM, Benjamin Eberlei <kontakt@beberlei.de> wrote:
> Thanks for working on this Sebastian, its really appreciated! +1 from me!
>
> On Thu, Aug 25, 2011 at 3:27 PM, Sebastian Bergmann <sebastian@php.net>wrote:
>
>> On 08/25/2011 02:54 PM, Gustavo Lopes wrote:
>>
>>> You could fetch the parent and do the same check, and so on. I think you
>>> might be able to just check whether ce.create_object is not NULL, because
>>> if the internal class doesn't replace create_object, there's no chance of
>>> that class of crashes occurring; plus, they're propagated to the
>>> subclasses.
>>>
>>
>> I updated the patch accordingly. Thanks!
>>
>>
>> --
>> Sebastian Bergmann Co-Founder and Principal Consultant
>> http://sebastian-bergmann.de/
>> http://thePHP.cc/
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
--
Guilherme Blanco
Mobile: +55 (11) 8118-4422
MSN: guilhermeblanco@hotmail.com
São Paulo - SP/Brazil