Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122121 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80510 invoked from network); 5 Jan 2024 12:40:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jan 2024 12:40:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1704458464; bh=Me/ie6lETGBJLueXgwHDa4M0KHey8lsA1aUMvW/LS9k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=R/FhQxOOQDozA8aZofJyaBlDHFyDMhh5CGVwnZNaNB9js9LQO4VIi1KLza4iES5Uk OqEh5+Vpx5KXySkzgOpIzPcdg7bsxGQEbI2Wny+jhZIEwG0mEsgsVfnDcWvHgDmimq 8r5OqxUkbZ3JWcuuQO0iqaCWMUmTLqNxU/75TwXblX526bXOOIu++aZ+tWSQsM0D1m 8OSdq2wVkSnkvmWN+3q9kmShtAYoVmqUVnq7euZMYGxrv60DKflGzZig70+/cQpSU0 gvXlzcGQoO+Y2ZCYuXEGkiCi1T5Nar5KwKPif/+vdH4OUU/RwG5lpIywM4CMKDFDxu C9P0DXqaQcAqw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 135F7180058 for ; Fri, 5 Jan 2024 04:41:01 -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=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 5 Jan 2024 04:41:00 -0800 (PST) Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dbdb8e032f7so387545276.1 for ; Fri, 05 Jan 2024 04:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704458428; x=1705063228; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Me/ie6lETGBJLueXgwHDa4M0KHey8lsA1aUMvW/LS9k=; b=JbGZA/8+Q7kp46zUiYMNTDrYrv3jzBC/ZHsosU+tjiXlXW2JzYSouluCJ9m4xcgnyv ytu8p+mzV0wmawvfu65hqtFcJHwo1hkmYRRzMoXfhOWzKZxsBa5YqhSUZjxbx6k4lT/y j8gSwG/d7Hvx2s37KTWuP4w6+LdSj8TrSztzZhsVP+oyl73/CCTg8i0kA+tXK7Hb2cqp x/WQlpwDCxA8l3cqA3MZXtfi7Pf8LFjJ0kKyLNZ2mvsX6LggSsYsAdiGj/5sm+oNgtvG YGaxQhisfj/z1SGuTN/Ar7CpKLKqtkl8HHfs1TEHb+pIQj6ePC5Na8ZukkaYofBj9HlE rhkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704458428; x=1705063228; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Me/ie6lETGBJLueXgwHDa4M0KHey8lsA1aUMvW/LS9k=; b=STt2j9o6J4E6YZHMqAnw+Cdv4e49+x4AV9/jwKHlhsT7wBWmDH1rBKX5NfoJHxO7Wt IjUwsd+tkyIxvh2OklSo1gLwlI7ktExQJaM/6vB04WXTlYezDAve9bkqG4ldttliH8oR DUDjygm5ybn12j+U2BQZe6FhKKq/o2AXbTfJcS5Qy3RXkIziFo7EdL+aFhdZn36FpK7H mVD5qWtPIjpC5ZSp3eHHPTZxkFLcPmtu9qjHkqyVX/ea7z7R+WSvzS+KHUIkCQzt6FYp KZF8FGQmQjfZdprbzJdb6b8vxhnucr4cntiWGazFJkzinodwRzENqWw/OKMOAm/lcPyX 9Baw== X-Gm-Message-State: AOJu0YyVCRegKt8JMC2ICULBvTAio88+e57STlTPc/RpwBP89mwf0Qu0 diT+NLRMjUK6unavcKBlVf1uUsuiKCclUz1oefc= X-Google-Smtp-Source: AGHT+IGWerfSTu1pHxAWwzpZ49L6g4LvtvHOqF/aONSyc7RR4kmNkYmFG9GlEFtTjTdknXOBT8h+hr5iHlMjS6VLpRc= X-Received: by 2002:a5b:9c5:0:b0:dbd:4e4e:1f1a with SMTP id y5-20020a5b09c5000000b00dbd4e4e1f1amr1266738ybq.33.1704458427834; Fri, 05 Jan 2024 04:40:27 -0800 (PST) MIME-Version: 1.0 References: <3828a559-5dae-44d1-96ce-dff1a8b07c18@gmail.com> <99C434B3-3953-4E90-8DEA-94237332219D@gmail.com> In-Reply-To: Date: Fri, 5 Jan 2024 13:40:15 +0100 Message-ID: To: Robert Landers Cc: Rowan Tommins , internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000202760060e322720" Subject: Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs From: michal.brzuchalski@gmail.com (=?UTF-8?Q?Micha=C5=82_Marcin_Brzuchalski?=) --000000000000202760060e322720 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable pt., 5 sty 2024 o 13:19 Robert Landers napisa=C5=82(a): > On Fri, Jan 5, 2024 at 11:59=E2=80=AFAM Rowan Tommins > wrote: > > > > Globals is how this works (atm) > > > > It's how it works for native SAPIs. It's not, as far as I know, how any > worker system other than FrankenPHP has implemented its API. Every other > implementation I've seen, whether async or not, passes in some form of > request data to the callback, with the exception of RoadRunner, which giv= es > the data as a return value from a "get next request" function. > > Nearly every library in existence knows how to use these globals > (including 30 years old legacy code). There are also the unwieldy PSR > request/response containers for which there are dozens (if not > hundreds) of implementations. It would be fantastic if there were > already an extension-based implementation that could be adopted into > php-src; though I feel like that is a separate conversation. > There are indeed dozens of libraries already working with PSR nicely but IMHO the API should provide all the necessary information in a way that allows the construction of such objects, but suggesting PSR with request/response objects will limit the capabilities of worker mode API to handle pure HTTP protocol only. What I'd like to say is that I believe for the initial proposal of any eventual worker mode API with the PSR with request/response objects should not be considered at all. Cheers --000000000000202760060e322720--