Re: [PATCH] Closures and reflection improvements
| From: | Christian Seiler | Date: | Mon, 11 Aug 2008 22:34:41 +0000 |
| Subject: | Re: [PATCH] Closures and reflection improvements | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39844@lists.php.net to get a copy of this message | ||
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 wellI 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.
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