Re: [PHP] Accessing PHP globals from a module.

2002-05-22 Thread Rasmus Lerdorf
> On Tue, May 21, 2002 at 08:03:36AM -0700, Rasmus Lerdorf wrote: > > Depends a bit on what sort of globals you are after. If you mean a global > > variable set by the user in the global symbol table you would do: > > > > pval **tmp; > > if(zend_hash_find(&EG(symbol_table), "foo", 3, (void **

Re: [PHP] Accessing PHP globals from a module.

2002-05-22 Thread Eric Veldhuyzen
On Tue, May 21, 2002 at 08:03:36AM -0700, Rasmus Lerdorf wrote: > Depends a bit on what sort of globals you are after. If you mean a global > variable set by the user in the global symbol table you would do: > > pval **tmp; > if(zend_hash_find(&EG(symbol_table), "foo", 3, (void **)&tmp) == S