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

[PHP] Accessing PHP globals from a module.

2002-05-21 Thread Eric Veldhuyzen
Hi, I have just written a module for PHP (in C, linked with PHP statically). Now I need to access session variables and other globals from whithin my module. But I can't find how I should do this, I see documentation on how to call user functions, and how to create new global varables, but now ho

[PHP] Accessing PHP globals from a module.

2002-05-21 Thread Eric Veldhuyzen
Hi, I have just written a module for PHP (in C, linked with PHP statically). Now I need to access session variables and other globals from whithin my module. But I can't find how I should do this, I see documentation on how to call user functions, and how to create new global varables, but now ho