Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122047 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53597 invoked from network); 26 Dec 2023 19:16:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Dec 2023 19:16:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5EA7C180051 for ; Tue, 26 Dec 2023 11:17:02 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 26 Dec 2023 11:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1703618194; bh=+JVDj8+iQ+2zXOewhQ2lANdBir3ykajxZ3OZznJzzWQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=QvMyb2EijAZi16IfbgacMyBEYKHJfjTAew46zfHd5HtG+CCtLQ5bRMCW2PTXfSbU8 sP4GiMUpllw7SDcVNb2DLlHy6mKspGRbl4Tm5FG1LMFx9H2MjjC4eiF/GBK/5KDBA8 WeVRZwtFOzNsWNifu1I5jfF9z9GtmcPyKxIcHX3C+Jb8S0UdQw2q5gxy8huNPBUBKD Kt+eeajPFzMbuSkznc3DVHtktXSpeibgV8jFh+iVQP1Bas111qBAuu7XXW/jUpIAAS S94lf4Q6jqE6KcG+AtLj/k7BjkOGEEkw4xFdUW3othUwLRKpe67rmHa9oaOzc5aSAZ D1++A/QMlGBqA== Message-ID: <66d9694b-c4cd-4760-b86c-6cf386f39def@bastelstu.be> Date: Tue, 26 Dec 2023 20:16:31 +0100 MIME-Version: 1.0 To: Jordan LeDoux , =?UTF-8?Q?K=C3=A9vin_Dunglas?= Cc: internals@lists.php.net References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 12/25/23 19:56, Jordan LeDoux wrote: > So you want to introduce a SAPI that doesn't work with any of the existing > HTTP solutions people use that only supports HTTP requests? Or am I > misunderstanding something? > > This sounds a bit like you want to merge in a tool that is designed for > your personal product directly into core. FrankenPHP may be incredible and > awesome, but the world runs on Apache and Nginx for HTTP requests. > My understanding of the proposal in very simplified language is: A new function shall be added to be implemented by SAPIs that are capable of implementing the function correctly. This function effectively: 1. Flushes the pending headers (header() calls) and body (if any). 2. Blocks until a request arrives. 3. Sets the superglobals ($_GET, $_POST, ...) to the request's values. 4. Sets the php://input stream to that request's body. 5. Sets up default headers (e.g. x-powered-by, if enabled). Best regard Tim Düsterhus