Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65350 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6652 invoked from network); 29 Jan 2013 11:10:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2013 11:10:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=zeev@zend.com; 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:56165] helo=mail-ob0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/C6-07604-41EA7015 for ; Tue, 29 Jan 2013 06:10:12 -0500 Received: by mail-ob0-f176.google.com with SMTP id v19so275775obq.35 for ; Tue, 29 Jan 2013 03:10:09 -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=uKYj1XaweBXP7TjAgYiqI0lB2lGfdbL5rPAKeeTDBAk=; b=it2Kk3toZwnYF02OYRDZ6kIIPO2zND20t/OkI3zw3jbfbCWhcKdHBMLCIlNk7BUOgt EIM2tl68HNYworh0fg89axqogJVulYT9hC6bx8w/5JIiZPes+M2G8+qr7TEVHFYokFzi +VXIXUblYvObkvmCqFMQJ/0R+BJ/0WXZ8P/fRH9+pbnZFOj6Kuo2eE/CzzRo5SIE9yMg LO5oUAsi+qdhsqEro6UVfza5zfo2ckXtOPGKt9+jJfhrH/LMHQe3B7cK0/3vb9oBgLym HIL7+EFp6z5cii9jQudtPxWu9f9mrHMoUP+vQynHi8Nx8RAdYeKhP5ByqGphCqqf4lLb QePA== X-Received: by 10.60.32.19 with SMTP id e19mr432182oei.60.1359457809642; Tue, 29 Jan 2013 03:10:09 -0800 (PST) References: In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJJdUzE2iPwKiwvzciYvchG03LAWgHrKhe1l1nbkhA= Date: Tue, 29 Jan 2013 13:10:09 +0200 Message-ID: To: Pierre Joye Cc: PHP internals Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmLVAA2HLd2gWmdXGM4y5qYYEKBkDLH7ESU1GOUq0zNhnmqoYFFPmpdJeyWoq+jThn3pyjc/mTgtxk0q31oqP1r0caEVgj3sXmuRJpe2kREtj5Janjmurbu0kf5kCbOrpcXJP14 Subject: RE: [PHP-DEV] ZTS - why are you using it? From: zeev@zend.com (Zeev Suraski) > The other main reason from my side to keep ZTS is Windows. Windows cannot > perform well using process based SAPI. Windows actually works quite well with FastCGI. So well Microsoft even created their own version for IIS. It's outperforming the ISAPI module by a wide margin. Other than Apache/Windows not having FastCGI support(*), I really can't imagine any situation where using ZTS inside of a Web Server context makes any sense at all. I wouldn't call it a new trend, it's both old (I've been pushing for it since at least 2006, probably earlier) and with very solid technical reasons (faster, more reliable). > Yes, TSRM is horrible and does not match modern thread safe implementation > (APC does it better for its usage f.e. using rwlock). Note that I wasn't talking about the implementation of ZTS, but why you would want to use it in the first place. I actually think that using thread local storage is much better than using locks - but if you can make the whole problem disappear because there's no need for thread safety, that's even better. Why heavily invest in something unless there's a very good reason to use it? Zeev (*) Apache actually does have a good FastCGI implementation available in Zend Server for Windows (including the free CE version). Using it is faster and more reliable than using mod_php on Windows.