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);
}
but it seg faults upon second execution.
Can someone reccomend a more successful method of accomplishing this?
Chhers,
Ken
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php