Re: [PHP-DEV] Global structures in extension

2008-06-03 Thread Adam Klobukowski
Antony Dovgal pisze: On 02.06.2008 20:49, Adam Klobukowski wrote: HYAMIAGENT agent; PHP_MINIT_FUNCTION(gra) { yamiNetInitialize(); yamiCreateAgent(&agent, 0, NULL); yamiAgentDomainRegister(agent, SERVER_NAME, SERVER_ADDRES, SERVER_PORT, 2); return SUCCESS; } /* }}} */

Re: [PHP-DEV] Global structures in extension

2008-06-03 Thread Antony Dovgal
On 02.06.2008 20:49, Adam Klobukowski wrote: HYAMIAGENT agent; PHP_MINIT_FUNCTION(gra) { yamiNetInitialize(); yamiCreateAgent(&agent, 0, NULL); yamiAgentDomainRegister(agent, SERVER_NAME, SERVER_ADDRES, SERVER_PORT, 2); return SUCCESS; } /* }}} */ Well, this is clearly

Re: [PHP-DEV] Global structures in extension

2008-06-02 Thread Adam Klobukowski
Antony Dovgal pisze: On 02.06.2008 13:35, Adam Klobukowski wrote: Hello I'm writing a PHP extension where I'm using a custom library. This library uses a structure that needs to be initialized once per server instance. First I initialized it in each of my functions and deinitialize it ant th

Re: [PHP-DEV] Global structures in extension

2008-06-02 Thread Antony Dovgal
On 02.06.2008 13:35, Adam Klobukowski wrote: Hello I'm writing a PHP extension where I'm using a custom library. This library uses a structure that needs to be initialized once per server instance. First I initialized it in each of my functions and deinitialize it ant the end. It works ok, bu