On Fri, 07 Oct 2011 20:32:24 +0100, Ferenc Kovacs <tyr...@gmail.com> wrote:
"- Closures can now have an associated scope"
as it is
https://wiki.php.net/rfc/closures/object-extension#privateprotected_members_scope
?
at first I thought that scope means Variable scope, but I think I get
it now: it means that when the Closure calls/access something through
$this, it will be handled as it was called/accessed from the given
class(scope).
Yes, sorry, by "scope" I mean "EG(scope)", which is a class entry, and,
for the purposes relevant here, determines access to protected/private
members. I did not want to convey its usual general meaning.
--
Gustavo Lopes
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php