Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65334 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79220 invoked from network); 29 Jan 2013 09:25:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Jan 2013 09:25:58 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.182 as permitted sender) X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.210.182 mail-ia0-f182.google.com Received: from [209.85.210.182] ([209.85.210.182:55271] helo=mail-ia0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/21-07604-5A597015 for ; Tue, 29 Jan 2013 04:25:57 -0500 Received: by mail-ia0-f182.google.com with SMTP id w33so280188iag.27 for ; Tue, 29 Jan 2013 01:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=XybMlbzpWhw1LM5qo5pcafAmEG1Pr3vLjHbE5oliYNQ=; b=DshAWKMZvhIi5UjiSkbz4MjSYBJINvaf9DXvVIO2693YdotA2ohtc0atvKMJ5kRi2Q u/wief8i/DQR29m3pWW5L3BWgH8MIXYHv3VlYYLBGWm40uPjnUbuqcosDjRwxnlXo453 laMIgGZuydDO/l+nMPcGU89aXYDF3GFQZdXxCSc9zIEMMMaGcoexGzV+/9xZIFM0C3Pe tigfRKt+5RFfo0AqRSVLFae9cRX3NRJOMEDwCXx6mCnbhdCtAQBWsIRo3y6p8d7S5hDd zExIrezPeKrc86/T4z0lUNrJjHeR3ozR+yEnPhtC+L75So5OruRI7UkcBgWezkbXoItK KubA== MIME-Version: 1.0 X-Received: by 10.50.16.208 with SMTP id i16mr461938igd.6.1359451554144; Tue, 29 Jan 2013 01:25:54 -0800 (PST) Received: by 10.64.142.233 with HTTP; Tue, 29 Jan 2013 01:25:54 -0800 (PST) In-Reply-To: References: Date: Tue, 29 Jan 2013 13:25:54 +0400 Message-ID: To: Zeev Suraski Cc: PHP Internals List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ZTS - why are you using it? From: indeyets@gmail.com (Alexey Zakhlestin) On Tue, Jan 29, 2013 at 1:03 PM, Zeev Suraski wrote: > Which brings me to the subject of this mail =E2=80=93 why are you using Z= TS 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-ZTS= 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? I use it for long-running processes, when I need something like http://pecl.php.net/package/pthreads But, those are scenarios, when I don't need bytecode cache, because everything is preloaded in "real" memory -- Alexey Zakhlestin, http://github.com/indeyets