1 Aug 2003 02:44
[PHP-DEV] Making a variable global question
Ken Spencer <lists <at> iondesign.ca>
2003-08-01 00:44:46 GMT
2003-08-01 00:44:46 GMT
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
RSS Feed