Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33504 invoked by uid 1010); 9 Aug 2005 19:18:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33489 invoked from network); 9 Aug 2005 19:18:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 19:18:21 -0000 X-Host-Fingerprint: 66.80.117.3 longsword.omniti.com Linux 2.5 (sometimes 2.4) (4) Received: from ([66.80.117.3:48672] helo=mail.omniti.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 51/F9-04646-D7109F24 for ; Tue, 09 Aug 2005 15:18:21 -0400 Authentication-Results: mail.omniti.com smtp.user=george; auth=pass (LOGIN) DomainKey-Status: good X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Cc:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=NUG/iDo8LqMsEQYsz+KtreEs8MRfZwhC5+DT3i68GpOm2Uv7ne4B6z6wNxsylM7G +8a0tawOC6wF6pv0V/atQiZp7bjaZ2ZFUrfeqjRAoES6U1B3LLk3/WXK6hkY0Fxr Received: from ([66.80.117.2:57825] helo=[10.80.116.150]) by mail.omniti.com (ecelerity 2.0 r(6414M)) with SMTP id 03/00-10040-37109F24 for ; Tue, 09 Aug 2005 15:18:16 -0400 In-Reply-To: <57792e8505080912126bd0842d@mail.gmail.com> References: <57792e85050808205143e96a8f@mail.gmail.com> <42F82AE3.6070602@lerdorf.com> <57792e8505080912126bd0842d@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <2AD2FB4A-342A-4A26-B302-1313B6C2AE9B@omniti.com> Cc: George Schlossnagle , Rasmus Lerdorf , internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Tue, 9 Aug 2005 15:18:09 -0400 To: steve roussey X-Mailer: Apple Mail (2.733) Subject: Re: [PHP-DEV] Moving to PHP5.1 and Apache 2.2 next year, need help From: george@omniti.com (George Schlossnagle) On Aug 9, 2005, at 3:12 PM, steve roussey wrote: > On 8/8/05, Rasmus Lerdorf wrote: > >>> 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. >> > > OK, I am confused. I always thought (an assumption with nothing to > back it up, now that I think about it) that the core part of PHP was > thread safe and that it was the third party libraries included from > _extensions_ that were at issue. > > So if I used mysqli then it was at the mercy of the mysql library. So > if the mysqli maintainer knew that that library was safe and their > extension was safe then they could mark it as safe. All others would > go through a single mutex, etc... > > But if PHP core uses a library and has no idea if it is safe or not > (like glibc, though would run under such a system?) then I get your > point. I hadn't considered it before. I suppose that is why MySQL > statically links in such things that it knows works, not leaving > anything to chance. This can affect you even if you're not statically linked. Dynamically loaded libraries run in your address space and have the same ability to mess you up as statically linked libraries. Otherwise your understanding is spot-on. Here there be dragons. George