Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3671 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2718 invoked from network); 1 Aug 2003 00:43:23 -0000 Received: from unknown (HELO iondesign.ca) (64.69.77.43) by pb1.pair.com with SMTP; 1 Aug 2003 00:43:23 -0000 Received: from localhost (lists@localhost) by iondesign.ca (8.11.6/8.11.6) with ESMTP id h710ikD05930 for ; Thu, 31 Jul 2003 17:44:46 -0700 Date: Thu, 31 Jul 2003 17:44:46 -0700 (PDT) To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Making a variable global question From: lists@iondesign.ca (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); } but it seg faults upon second execution. Can someone reccomend a more successful method of accomplishing this? Chhers, Ken