> If the call to foo() is simply treated equivalently to a call to A::foo(),
> then this may have some quite surprising behavior: 
>
> If A::foo() is an instance method, then this call to foo() will inherit 
> $this, 
> which is something that normally does not happen with free-standing function 
> calls.
> Possibly this would need a new call type that enforces that the method is 
> actually static?

I do like this approach. A new call opcode would make sense for that.

It won't help for internal functions or their polyfills such as mb_strlen(), 
etc.,
so autoloading functions would still make some sense if that approach was taken.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to