Re: [PHP-DEV] Making a variable global question

2003-08-01 Thread Ken Spencer
o see if > the active_symbol_table is the same as the symbol_table which it would be > if you were to call this function from the global scope. > > -Rasmus > > On Fri, 1 Aug 2003, Ken Spencer wrote: > > > On Fri, 1 Aug 2003, Mark Spruiell wrote: > > > > &

Re: [PHP-DEV] Making a variable global question

2003-08-01 Thread Ken Spencer
On Fri, 1 Aug 2003, Mark Spruiell wrote: Mark, thanks for your reply. The situation is, is that I am writing a large piece of software with several hundred functions. At the beginning of each function I have som initialization code that allows me to do several thing. Parse through the variab

[PHP-DEV] Making a variable global question

2003-07-31 Thread Ken Spencer
I am trying to make a function for my extension that makes a predefined variable global I have tried something along the lines of: if(zend_hash_find(&EG(symbol_table), var, strlen(var)+1, (void **) &vars_data)!=FAILURE) { ZEND_SET_SYMBOL(EG(active_symbol_table), var, *vars_data); }