Re: Module globals in a C++ extension
| From: | Hartmut Holzgraefe | Date: | Fri, 27 Jan 2012 15:23:42 +0000 |
| Subject: | Re: Module globals in a C++ extension | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9072@lists.php.net to get a copy of this message | ||
On 01/24/2012 10:52 PM, Ángel González wrote:
Just store that class in a global variable.how would that work in a multi-process setup? The only ways to have true per-instance globals regardless of the instance worker model would be to allocate a shared memory segment for the global information, to mmap() a common file or to de-/serialize from/to a common external resource ... -- hartmut