Re: Re: global variables

From: Date: Tue, 07 Dec 2004 20:05:13 +0000
Subject: Re: Re: global variables
References: 1 2 3 4 5  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1704@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote:
Thank you for your complete answer. But Turck mmcache provide a function to store variable in a shared memory which is common to all process ( http://turck-mmcache.sourceforge.net/index_old.html#api ). So there must be a way to do that but I watch mmcache sources and I don't find the thing...
That's because mmcache manages its own shared memory segment. APC is able to do that too. If you want to do it, allocate some shared memory and stick the variable there. Thanks ! I finally understood the "trick".
But unfortunetly I don't know many things about shared memory and it's probably not so simple... Do you think it's possible (realistic) to reuse apc or mmcache shared memory functions or it's not a good idea, except if you like segfault... ? -- Tristan Croiset

« previous php.pecl.dev (#1704) next »