Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82822 invoked from network); 29 Jan 2013 09:32:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2013 09:32:08 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.181 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.217.181 mail-lb0-f181.google.com Received: from [209.85.217.181] ([209.85.217.181:61656] helo=mail-lb0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/F1-07604-71797015 for ; Tue, 29 Jan 2013 04:32:08 -0500 Received: by mail-lb0-f181.google.com with SMTP id gm6so436962lbb.26 for ; Tue, 29 Jan 2013 01:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bKGCvjJvRR4epTlpb1S5LUpuSP8XXIL5gsdqQOiBO7A=; b=ANzI65PSJBb7iaZp9C4VWifnxFF2ihLqJR7CVqzvYdeSd7YgdgpWUDx/f4kB883iOB S23+lPNnAIx5PPwYT2kZmtkPiQFg6yDHGNd6iND2rzaQJYT0DgSDLNlhaRjl7t9KK5i9 HqABeJEFM6nZa37+7YP1OvHN2nver8cLwdzR9j0mmkiXidNZd2qFT4nSKav8n3tQn1FD pqgepFdO9wPLRdepKlNmdL1eCHkaAAEVXrEfGI4dm/+EIfa0WbFofbUZoHXG7pZvisQf MrrDUZcRNZuu4HqMLGQ3fAWApBIhwNEvn4OWPzWHROxTC84IRHNujKjK5D285Fhz7QKD /Ndw== X-Received: by 10.152.145.37 with SMTP id sr5mr460888lab.33.1359451923871; Tue, 29 Jan 2013 01:32:03 -0800 (PST) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.66.196 with HTTP; Tue, 29 Jan 2013 01:31:43 -0800 (PST) In-Reply-To: References: Date: Tue, 29 Jan 2013 17:31:43 +0800 X-Google-Sender-Auth: 35XmfxZhIJlXvi3iSOwZ4fNiQKE Message-ID: To: Zeev Suraski Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ZTS - why are you using it? From: laruence@php.net (Laruence) On Tue, Jan 29, 2013 at 5:28 PM, Laruence wrote: > On Tue, Jan 29, 2013 at 5:03 PM, Zeev Suraski wrote: >> I didn=E2=80=99t want to hijack the Optimizer+ thread so I=E2=80=99m cre= ating a new one, >> based on the apparent level of interest in ZTS. This isn=E2=80=99t an R= FC to >> remove ZTS by any stretch, but I **am** a bit confused about why people = are >> still using ZTS. >> >> >> >> A bit of background. I started the ZTS project (based on initial work b= y >> Shane Caraveo more than a decade ago), and invested countless hours in >> pushing it all throughout PHP. So I really hold absolutely no grudge >> against it, quite the contrary=E2=80=A6 However, many years ago, I came= to the >> conclusion that it was a bit of a lost cause trying to weed out all the >> thread safety issues from everywhere =E2=80=93 and that a simpler, more = elegant >> solution exists in the form of FastCGI. >> >> >> >> Which brings me to the subject of this mail =E2=80=93 why are you using = ZTS PHP >> instead of single threaded PHP? The reasons not to use it are few but >> fairly major =E2=80=93 it=E2=80=99s significantly slower than the non-ZT= S PHP, and it=E2=80=99s >> significantly less robust in the sense that a single bug somewhere can >> bring down an entire server (or at least a bunch of many different >> threads). What are your reasons to choose it over FastCGI? > > Hey: > > It's not we choose ZTS, it is there are many users run with them (IIS, > Apache+workers, and pthreads extension require it) > > and all PHP extensions supports it, so if O+ doesn't, it feel a little > inconsistent. And, if O+ aims only to be a PECL extension, I think it's okey. but if it is going to PHP src, I think the consistent should be considered, agree? thanks > > thanks > >> >> >> >> Zeev > > > > -- > Laruence Xinchen Hui > http://www.laruence.com/ --=20 Laruence Xinchen Hui http://www.laruence.com/