Re: PATCH: anonymous functions in PHP
| From: | Wez Furlong | Date: | Mon, 19 Mar 2007 00:30:37 +0000 |
| Subject: | Re: PATCH: anonymous functions in PHP | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28401@lists.php.net to get a copy of this message | ||
I found another flaw; when used in a loop it keeps trying to declare the same function over and over. I think this is because the ZEND_DECLARE_FUNCTION opcode is emitted as part of the arg list building op sequence.
I'm poking to find an elegant way to fix that.
--Wez.
On Mar 18, 2007, at 7:41 PM, Wez Furlong wrote:
You can find my prototype patch at http://pastebin.ca/400871 (against PHP_5_2)
There's one minor flaw in my implementation for ZTS enabled systems (just need to move the anon function counter into CG() to solve that.