Re: [PHP4BETA] What is ext/lcg/lcg.c?
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] What is ext/lcg/lcg.c? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3889@lists.php.net to get a copy of this message | ||
> We don't know what kind of hooks Apache 2.x is going to have, mainly
> because neither do the Apache developers.
Ben Laurie has pretty much finalized them. There may be one or two more
coming at the most, but apart from that the new hook mechanism is all
done.
> MM is currently UNIX specific (as far as I recall, it's shared memory
> based). You might be able to emulate its behavior under Win32 or a
> multithreaded environment, you might not. Either way, until you do, it's
> platform specific (whether you use a platform specific function or a
> platform specific library that may or may not be ported later on doesn't
> make much of a difference; Everything can be ported or emulated, it
> doesn't mean its done).
I doubt we need MM on Windows. But if we do, for some weird reasons, we
should be able to used named shared memory there. MM uses anonymous
shared mem which I don't think you can do on Windows.
> My rule of the thumb here is simple - if something works under most unices
> and Win32, it's platform independent. If it doesn't, it's not. Therefore,
> your session code that relies on the UNIX specific MM library is platform
> dependent, as it would not work under Win32 (and perhaps not on
> multithreaded UNIX platforms, not sure about that though). It doesn't mean
> you shouldn't use it in your session module - but it does mean it shouldn't
> be encouraged and introduced as a part of PHP's infrastructure for module
> development.
The MM stuff is fine on multi-threaded Unix.
-Rasmus