Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2438 invoked from network); 15 Dec 2010 11:20:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2010 11:20:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 unknown Solaris 10 (beta) Received: from [217.114.211.66] ([217.114.211.66:63271] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/B4-58921-454A80D4 for ; Wed, 15 Dec 2010 06:19:49 -0500 Received: from [192.168.1.29] (ppp-93-104-44-232.dynamic.mnet-online.de [93.104.44.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id A61254B8DF; Wed, 15 Dec 2010 12:19:45 +0100 (CET) To: jvlad Cc: internals@lists.php.net In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 15 Dec 2010 12:19:40 +0100 Message-ID: <1292411981.2128.2.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP Performance in Apache: Multi-Process vs Multi-Threaded From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Tue, 2010-12-14 at 22:22 +0300, jvlad wrote: > > No. Php if we talk about php with all its extensions is not threadsafe > at > all. Many of the extensions allocate static data and inherently > non-thread-safe. PHP is, if compiled with ZTS/TSRM, thread-safe. Some libraries used by some extensions might not be thread safe, but basically all "usually" used ones are thread-safe. While it is a bit complicated as some libraries could either be compiled thread-safe or not or some might be not thread-safe on specific systems ... but that's not PHP itself ;-) johannes