Re: [PATCH] Closures and reflection improvements
| From: | Marcus Boerger | Date: | Mon, 11 Aug 2008 23:13:11 +0000 |
| Subject: | Re: [PATCH] Closures and reflection improvements | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39846@lists.php.net to get a copy of this message | ||
Hello Christian,
Tuesday, August 12, 2008, 12:34:41 AM, you wrote:
> Hi Marcus,
>> Account approved and access granted.
> Thanks!
>> Please provide the function copying in a function next to _free_function()
> I just committed that (and included some tests). I hope I didn't do
> anything wrong in the process, if so, feel free to do so.
>> and care for parameter info as well
> I assume with parameter info you mean arg_info? That isn't necessary and
> actually harmful since the arg_info is not copied but simply referenced
> via a C pointer in closures (zend_get_closure_invoke_method copies the
> entire function structure, including the pointer to arg_info and only
> changes some flags the function name). There is no need to copy or
> destroy arg_info in reflection.
Oh, cool. I thought we'd have to do more stuff.
>> Also for your next patches (cvs di -N) allows to ship the new files in the
>> patch and (cvs di -Np) shows the context, which makes reading the patches
>> easier.
> Ah, thanks, I added that to my .cvsrc.
> Regards,
> Christan
Best regards,
Marcus