Re: Compiled variables and backpatching

From: Date: Sun, 23 Sep 2007 19:00:14 +0000
Subject: Re: Compiled variables and backpatching
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32427@lists.php.net to get a copy of this message
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 be the same (though not a value sitting there!), once found in can be stored so future calls to $a will not require looking up in the hash table. That's what CVs do. The reason, of course, is performance :) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32427) next »