Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17706 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78890 invoked by uid 1010); 9 Aug 2005 17:21:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78874 invoked from network); 9 Aug 2005 17:21:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 17:21:54 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:48420] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D4/D3-04646-136E8F24 for ; Tue, 09 Aug 2005 13:21:53 -0400 Received: from [207.126.233.18] (rasmus2.corp.yahoo.com [207.126.233.18]) (authenticated bits=0) by colo.lerdorf.com (8.13.4/8.13.4/Debian-3) with ESMTP id j79HLo0o022802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 9 Aug 2005 10:21:50 -0700 Message-ID: <42F8E62E.8070402@lerdorf.com> Date: Tue, 09 Aug 2005 10:21:50 -0700 User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ron Korving CC: internals@lists.php.net References: <57792e85050808205143e96a8f@mail.gmail.com> <42F82AE3.6070602@lerdorf.com> <7F.53.04646.A53E8F24@pb1.pair.com> In-Reply-To: <7F.53.04646.A53E8F24@pb1.pair.com> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Moving to PHP5.1 and Apache 2.2 next year, need help From: rasmus@lerdorf.com (Rasmus Lerdorf) If we find thread safety problems in PHP we will fix them, of course. It's not like we ignore them. Same goes for extensions, except for those which are specifically designed to access libraries that show no signs of ever becoming thread safe. At the same time, you need to recognize that developers work on what interests them and what they personally have a need for. I can't speak for everyone, but a good number of the core developers lean towards the robustness of a multi-process architecture. Having separate memory spaces makes everything easier to debug and when something does go wrong it doesn't take down the whole server. These are both very compelling reasons to stick with this architecture. -Rasmus Ron Korving wrote: > Nonetheless, Rasmus, isn't it something to work on? Like Steve said, #1 and > #2 can be accomplished, and that would at least be a good start. You are > right about the libraries, but in time, even these may become thread safe > (of course, likely not by anyone from the PHP-community). Why is this > thread-safety such a taboo for many of the people here? Don't get me wrong, > I know it can't be done in one go, but a start could be made, right? Perhaps > that start could be made from PHP6 on? It doesn't have to be officially > thread safe, because of all the libraries, but it could be thread-safer... > > Ron > > > "Rasmus Lerdorf" wrote in message > news:42F82AE3.6070602@lerdorf.com... > >>steve roussey wrote: >> >>>I have read and understand that there are a number of issues: >>> >>>1. Problems with the Apache2 sapi >>>2. Problems with thread safety in the Zend Engine or PHP itself >>>3. Problems with thread-safety of modules >> >>You missed the most serious one. Thread safety problems in random >>libraries you link in and we have absolutely no control over those. >> >>My stuff is far bigger and busier than yours, and I have absolutely no >>intention to go threaded anytime soon. >> >>-Rasmus > >