Re: [PHP-DEV] Compiled variables and backpatching

2007-09-26 Thread Stanislav Malyshev
OK, so its a bit of caching. So it sounds like it stores a pointer into the symbol table, so that if $a is redefined it will still be correct. What happens if the symbol table must be rehashed? Does it still work, or does it look it up again? I think rehashing doesn't matter since hash table has

Re: [PHP-DEV] Compiled variables and backpatching

2007-09-23 Thread Paul Biggar
On 9/23/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > What is a compiled variable? > > How does it differ from a non-compiled-variable? > > When engine encounters variable like $a what it usually does is it looks > up current symbol table for an entry named 'a', and then takes zval* > sitti

Re: [PHP-DEV] Compiled variables and backpatching

2007-09-23 Thread Stanislav Malyshev
What is a compiled variable? How does it differ from a non-compiled-variable? When engine encounters variable like $a what it usually does is it looks up current symbol table for an entry named 'a', and then takes zval* sitting there. However, since during the same scope the entry for $a will

[PHP-DEV] Compiled variables and backpatching

2007-09-23 Thread Paul Biggar
Hi, I'd be very interested to have an overview of compiled variable and backpatching within the interpreter. I can find plenty of emails and code that refers to the two topics, but none that defines them. If there is an overview somewhere, could somebody point me to it? If not, I have a few quest