Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94874 invoked from network); 22 Mar 2018 04:16:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2018 04:16:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=tessarek@evermeet.cx; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tessarek@evermeet.cx; sender-id=pass Received-SPF: pass (pb1.pair.com: domain evermeet.cx designates 77.244.245.66 as permitted sender) X-PHP-List-Original-Sender: tessarek@evermeet.cx X-Host-Fingerprint: 77.244.245.66 evermeet.cx Received: from [77.244.245.66] ([77.244.245.66:36480] helo=atvie01s.evermeet.cx) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/9D-03694-CFD23BA5 for ; Wed, 21 Mar 2018 23:15:59 -0500 Received: from [10.0.0.42] (23-233-10-186.cpe.pppoe.ca [23.233.10.186]) (authenticated bits=0) by atvie01s.evermeet.cx (8.15.2/8.15.2) with ESMTPSA id w2M4Flxw017303 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 22 Mar 2018 05:15:49 +0100 DKIM-Filter: OpenDKIM Filter v2.10.3 atvie01s.evermeet.cx w2M4Flxw017303 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evermeet.cx; s=default; t=1521692149; bh=i7jWUxsl1jxw7gju6mvTNHrXs/qKZ9ixzZCdTFv0Ez8=; h=Subject:To:References:From:Date:In-Reply-To:From; b=NkcAeV5xoL0xT3rVFr2G01rSRUPv2c8nufWWpK4/bTmTbLypsxA1TFRuSgJ2QzaYh SKU1Gsl7LiP8vO+chbLvNPF7/IyGn6BxsSs5GLDQB8ftese8Pgl81H7XoH0h+LpIaa 1QoKme4Lu7gnfE9HpTw3DZIUcCvsbJK8+cNgo8rQ= To: j adams , "internals@lists.php.net >> PHP internals" References: Message-ID: <421fae6f-d6ba-1990-d3d8-9ac236313cea@evermeet.cx> Date: Thu, 22 Mar 2018 00:15:42 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5fiIHhS1dU9fuC5Br9AcDLgEZH6IqgWoj" Subject: Re: [PHP-DEV] what's the official position on apache threaded environments From: tessarek@evermeet.cx ("Helmut K. C. Tessarek") --5fiIHhS1dU9fuC5Br9AcDLgEZH6IqgWoj Content-Type: multipart/mixed; boundary="Q0QYs4ZuTwSE4JgWcFTr4Imj5ixLMx1o4"; protected-headers="v1" From: "Helmut K. C. Tessarek" To: j adams , "internals@lists.php.net >> PHP internals" Message-ID: <421fae6f-d6ba-1990-d3d8-9ac236313cea@evermeet.cx> Subject: Re: [PHP-DEV] what's the official position on apache threaded environments References: In-Reply-To: --Q0QYs4ZuTwSE4JgWcFTr4Imj5ixLMx1o4 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2018-03-21 21:59, j adams wrote: > So what's the story with PHP and multithreaded environments these days?= Unfortunately PHP was never and will most likely never be threadsafe as a module. (Yes, I know that there's the ZTS code, but hey, are you really serious about this?) I never understood why the core devs never switched to a threaded model, but I believe they never deemed it truly necessary. The ZTS threaded module has a few interesting approaches but fails in some other areas. To be honest, I suggest to use the fpm-cgi SAPI module with an Apache threaded environment. > Does this statement on the PHP website still stand? > http://www.php.net/manual/en/faq.installation.php#faq.installation.apac= he2 Sorry, didn't read it. > Seems a bit archaic these days to eschew multithreaded environments, > doesn't it? Yes, it is. Doesn't change the fact that PHP is not threadsafe. > More specific questions: > * is there any kind of authoritative list of PHP modules that are NOT > threadsafe? If so, where might I find it? No, there isn't. But if you run php via fpm, it doesn't really matter anyway. > * What warnings, indications, failures, or errors, if any, might I > encounter if I am experiencing undesirable behavior by using PHP in an > event or worker environment? I use an event MPM on my server with an fpm cgi module Cheers, K. C. --=20 regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944 Key fingerprint =3D 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944 /* Thou shalt not follow the NULL pointer for chaos and madness await thee at its end. */ --Q0QYs4ZuTwSE4JgWcFTr4Imj5ixLMx1o4-- --5fiIHhS1dU9fuC5Br9AcDLgEZH6IqgWoj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE191csiqpm8f5Ln9WvgmFNJ1E3QAFAlqzLfQACgkQvgmFNJ1E 3QCbAA/+JSJfJ6WCzsSYd3CCrwdZCoHTfL0+rBUkVIXLRbaqOp8/pjPqUVrGRysz z/gnGWFtwA/JQ1/GyGeRNtBbrdy96alRP2jjdVdcq5N+BONnWXgVvFwpJQcowZsL FUJcFQmtgRI0cSxy6k5AWMG4YMDRcWzYB9vjrbycru8UU99P3E5kgqjr4BZZfb5u m0GIey5DnRDyF9xdNYAaBbcfpzNO7SKRlWAgUM3QRQIRyooAyVtagNkzLVSAptAu i6x2eMs84ha5qhOTYnhPL1KEuhusF0X+IYpKcr4Frfmp8hG7VagA0+GPZ2ywZgi4 5908hCKYe1rxAc5IqUQeSF1S5t+/AJvp+R+cfm4fbZHyAe6bP5aFxD7pBWJkxkLX lJrR1TAOBKruAHKdkgDGeKTpKmHbbo9VqUwgeu6mMlQME0v/lL5j3RLwoW0wcb+o SD/fEZ2rwkYTFRhsBZDMmbQ33Gwrkb3uzAajL7oedpOrmTeInsN+WuKojYGi8ITR HethKRX908YW7WKGeDk1ylybMIsl74608PWUDFGlPPs0tNh22jWkTxKLU6P4VhYH KHr2xublHm9hsPmW95g4kbIAGDDpEAqQ0N10sBX0H5EcLiJc5vgV7ReW1nmIIFh8 GaQ5dp9327CdWE40riU9Ls/oCI58suepMMBdTDxeELb2fn9pkb0= =h4vd -----END PGP SIGNATURE----- --5fiIHhS1dU9fuC5Br9AcDLgEZH6IqgWoj--