Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65498 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81480 invoked from network); 30 Jan 2013 12:42:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2013 12:42:50 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain zend.com does not designate 209.85.214.176 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.214.176 mail-ob0-f176.google.com Received: from [209.85.214.176] ([209.85.214.176:63547] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/BD-09318-94519015 for ; Wed, 30 Jan 2013 07:42:49 -0500 Received: by mail-ob0-f176.google.com with SMTP id v19so1551259obq.35 for ; Wed, 30 Jan 2013 04:42:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:references:in-reply-to:mime-version:x-mailer :thread-index:date:message-id:subject:to:cc:content-type :x-gm-message-state; bh=56DQ9I3l++HIyYVLEcrRVz2d7kb9Zps2KZR2znIZWJ0=; b=KgPjngMue0pGHi745xg3PdSgsGRLgioZAVtmJMiq5zRTcGfvTpE1x8eQc4SPi5Xhlr dKFoBH7FEGXXREjJawa4wCOspWmZuDvQviuhWRqPqosObdiDQDQj+Up1wJR46VSPwzK9 GQ1tqXnHqhxC4LZfbcQIld+M2nLLZhQnMr8rIanqXZitFpg3cUYdIpNsrGtF5IoZesee Omttl6htnabFIQrrmztx4ZRwNktt048Wq6eyQVwO8G5rj48vL1rvQagLQ50rAQ+PAEZe BENAFHkELzmIXAx01tnbRVPIho+HK7LMwdI84wt4eIrc87cKj8wkHXEuNDa09XGUtbUX s/Vg== X-Received: by 10.182.72.69 with SMTP id b5mr3560421obv.4.1359549765945; Wed, 30 Jan 2013 04:42:45 -0800 (PST) References: <5108743A.9090705@sugarcrm.com> <4d977bab18152b2e86d968f4db9d12ef@mail.gmail.com> <9DB107EF-A5CE-4CF5-84A1-7E2D733B4089@tobin.nl> In-Reply-To: <9DB107EF-A5CE-4CF5-84A1-7E2D733B4089@tobin.nl> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJJdUzE2iPwKiwvzciYvchG03LAWgHrKhe1AkgXmvEAyNLsagGCs/1aAVyIuMoBzi4ZIgKDM2kDAXHztbAB6FLJSZbuq32A Date: Wed, 30 Jan 2013 14:42:45 +0200 Message-ID: To: Bas van Beek Cc: PHP internals Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnJj1syfJpEyUNFx6FoXWh9NwnQbVMgBicKLJY3S8HGssDKSIyyvIk7jen2SJGrYk5zm6MaVE9gX46rGnEEAch0LmrYqvpAT1WTygm94OIXz59xLN6wuJG0YctGOXOf5br3/qdW Subject: RE: [PHP-DEV] ZTS - why are you using it? From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Bas van Beek [mailto:bas@tobin.nl] > Sent: Wednesday, January 30, 2013 2:29 PM > To: Zeev Suraski > Cc: Pierre Joye; Stas Malyshev; PHP internals > Subject: Re: [PHP-DEV] ZTS - why are you using it? > > Hi Guys, > > As a heavy user of ZTS in multi threaded C/C++ applications, here are my $0.02. > > Removing ZTS would be a bad idea for all those custom multi-threaded > applications out there that allow some form of internal/embedded PHP > scripting. These applications are not web-servers but do make use of threads for > reasons of their own. Building a FastCGI set-up would be out of the question if > these apps are deployed customer / client side and need concurrent PHP script > runs. > > > Based on the feedback on this thread, I think we should instruct users > > that using thread-safe versions of PHP is slower, and that actually > > putting thread-safe PHP inside a multithreaded server is not a very > > reliable solution. We should recommend FastCGI/fpm instead. We > > should do that tomorrow morning (figuratively speaking). In case I wasn't sufficiently clear, I'm talking about putting PHP inside a *multithreaded web server*, not being a good idea. The use case you specify is exactly the use case for keeping ZTS support in the code... Zeev