Hi!
Also $this have been wildly discuss here, but the same discussion can be
apply to static/self.
self might be simple to figure out how to bind within a closure.
It can be bind to the name of the class where the closure is define.
I would guess self binds to the scope, and static binds to the called
scope (though in the case of closure it'd probably be the same?), but
I'll check it and add some tests for it. Thanks for bringing this up,
this is indeed something that wasn't covered before.
Is there a RFC about it?
There is the RFC about closure object support, but I don't think these
matters were covered there.
--
Stanislav Malyshev, Zend Software Architect
s...@zend.com http://www.zend.com/
(408)253-8829 MSN: s...@zend.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php