Re: Re: PATCH: anonymous functions in PHP
| From: | Alexey Zakhlestin | Date: | Mon, 17 Dec 2007 08:20:34 +0000 |
| Subject: | Re: Re: PATCH: anonymous functions in PHP | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34053@lists.php.net to get a copy of this message | ||
On 12/16/07, Stanislav Malyshev <stas@zend.com> wrote:
> > Actually it's the opposite. With create_function, you can bind
> > variables, by marshalling them to a string and embed them in the
>
> That's not binding. But the problem is, seeing this, one expects
> closure. And it's no closure.
Well, documentation can include the following written using large font:
Warning: This is not a closure. PHP doesn't have native means for
nested contexts. This construct is just another way of creating usual
function during compile-time. (for creating functions in run-time see
create_function)
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/