Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51038 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88831 invoked from network); 16 Dec 2010 08:53:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2010 08:53:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.173 smtp173.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.173] ([67.192.241.173:53836] helo=smtp173.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/90-19877-2A3D90D4 for ; Thu, 16 Dec 2010 03:53:56 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp17.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id A8C1F18837D; Thu, 16 Dec 2010 03:53:52 -0500 (EST) X-Virus-Scanned: OK Received: by smtp17.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 520BF188374; Thu, 16 Dec 2010 03:53:52 -0500 (EST) Message-ID: <4D09D39F.4060301@sugarcrm.com> Date: Thu, 16 Dec 2010 00:53:51 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Scott MacVicar CC: jvlad , "internals@lists.php.net" References: <1292411981.2128.2.camel@guybrush> <91.E1.59023.9ADC90D4@pb1.pair.com> <2BF813E9-0314-4627-A278-601E357A8B01@macvicar.net> In-Reply-To: <2BF813E9-0314-4627-A278-601E357A8B01@macvicar.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > An example of non-thread safe is gettext it relies on the locale which is per process and not per-thread. > > PHP itself at the core is thread safe. As Johannes said most common modules are too. ICU btw has some global stuff too. It's actually worse as it has one global which is set depending on current locale and never changed even if PHP process changes the locale (yes, ICU has dependency on system locale, go figure). -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227