Overview
This is actually the standard method used in most modules.
The macro
ZEND_SET_SYMBOL
is now being called with a reference to the main, global symbol
table by referring
EG(symbol_table)
.
Voorbeeld
33-1
shows a sample source that creates two variables -
local_variable
with a local scope and
global_variable
with a global scope (see Figure 9.7). The full example can be
found on the CD-ROM.
Voorbeeld
33-1
.
|