Making a variable global question

From: Date: Fri, 01 Aug 2003 00:44:46 +0000
Subject: Making a variable global question
Groups: php.internals 
Request: Send a blank email to internals+get-3671@lists.php.net to get a copy of this message
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

« previous php.internals (#3671) next »