Re: equivalent of perl's ithread

From: Date: Sat, 11 Mar 2006 12:41:29 +0000
Subject: Re: equivalent of perl's ithread
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231785@lists.php.net to get a copy of this message
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

« previous php.general (#231785) next »