Hello Dmitry, Friday, March 14, 2008, 5:08:18 PM, you wrote:
>> I do not want to remove early binding. In fact I always >> wanted to have early binding as much as possible. Because >> that is faster and makes compiler caches easier. So why slow >> down stuff? A Compiler cache wants everythign as static as >> possible which means a compiler cache wants early binding. >> This is also faster. So what are you proposing here? > As I already explained, early binding may not work for cached code, > because of cross file dependencies. > My patch allows to delay early binding from file-compile-time to > file-load-from-cache-time. But that means we are compiling inheritance when a file is loaded form the cache. The goal should be to compiling inheritance when writing to the opcode cache file. All we achieve here is a slow down. If there is something that makes this required than at least we need to warn the user about the slow code. I Think what we need to do is deprecating class and namespace use in non main blocks as well as include and require in non main blocks. And if there is no such case than everything can be bound early which is the fast state we should aim for. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php