At 06:33 AM 3/11/2006, Khai wrote:
As of perl 5.6, perl has a concept of interpreter thread (called
ithread). Basically, any variable that you want to be shared across
threads, you have to explicitly shared it. This apply not only to regular
variables, but also apply to super global variables such as $_, making it
easy to write threadsafe modules in perl.
Does PHP has an equivalent concept? If I am developing php pages that are
to be run under apache2 threaded worker mpm, can I use $_SERVER variable ?
Thanks
Khai
Check the archives for thread safety and running PHP under Apache 2. The
URL is:
http://marc.theaimsgroup.com/?l=php-general&r=1&w=2
My information may be out of date, but the last I read was that PHP itself
was OK, but some modules were not thread-safe.
Regards - Miles
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php