Re: shared memory: shm_has_var
| From: | Stanislav Malyshev | Date: | Tue, 12 Dec 2000 09:32:31 +0000 |
| Subject: | Re: shared memory: shm_has_var | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40933@lists.php.net to get a copy of this message | ||
IV>> Well, the original question was (not really) in the (very)
IV>> general vicinity of using the shm_* functions to reserve and
IV>> attach to shared memory segments. Then the question was brought
IV>> up as to why these reserved segments aren't released when Apache
IV>> is restarted. shm_* are script-level functions, and the methods
I guess because shm_* functions aren't implemented in a right way, or lack
some features.
IV>> you're talking about are engine-level functions.
That's where it should be - I don't think such a tiny OS-level details
belong to PHP code. Most users don't want to even know about this - as
they don't want to know about memory allocation for variables, etc.
IV>> Maybe a fix would be to have some sort of web-server-level
IV>> shared memory support as well. Most people don't need the
IV>> OS-level stuff anyway for programs outside of the PHP engine;
IV>> they just need something that can survive execution of the
IV>> script.
Then they should use sessions (which have shared memory storage module,
IIRC).
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106