Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122122 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82623 invoked from network); 5 Jan 2024 12:54:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Jan 2024 12:54:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1704459297; bh=d40lSfWrrCSZc4ktJMn61Xq47E9/IHmQI6CiCP/ov7o=; h=Date:From:CC:Subject:In-Reply-To:References:From; b=IDit/aAcfq1Lf29FpqJJjMnCd+pZ43FNRBjAWhjQnSfY0nojbAeaimk+BW+ghcu1a 2abhP+eptrY6LkUWZBluYKKIpAxlpEP6TMBcIiBiMzoax3gOsdjqboKNKVgsIL7Vib gkT8iFaxJ+6yuU7tOrAt5itOmFkWlqEYa5DivrrGjWaUT2MBu3c/QMZ6h9Sjio6cNU WwxI8KonUraDhfjwbjIFbDvbZQM0WCc9n28QxMOAVToNYwZaA1Eis4/8MYl3YjvU/z M0q29GV2+fs5mlhWLxvUqfuFUlfDIhfl7HqBjoy0cwWkfHqGHUSsBLkKK3t5oQI6Zc om8aRAPHsqAxw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0FB37180038 for ; Fri, 5 Jan 2024 04:54:54 -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,FREEMAIL_FROM, MISSING_HEADERS,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-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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:54:53 -0800 (PST) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40d60c49ee7so15708025e9.0 for ; Fri, 05 Jan 2024 04:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704459260; x=1705064060; darn=lists.php.net; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:from:date:from:to:cc:subject:date :message-id:reply-to; bh=d40lSfWrrCSZc4ktJMn61Xq47E9/IHmQI6CiCP/ov7o=; b=Y8oM6Sr4Enrk+PjJ28GXM/Jqx61nFAajEWoPVnjppnFzRVRO83rJvMBJM4Y4ZjLsqk p3jhlUlzi9uZuySlykvKlY8JrMm29IlvwlEd/qPFqoPesO5S8sYz7TCcQMcz5z/YP49v k9fWWVgztdkZSGkV6mcBYC0+hOZNKorZU4PtAxmpFomqiJsodNi8LU40bPYxrc8nubp7 /FVecwF1OV1bS9foYEdfwCT6WhAWjkOT2w0r9gqVRjJWJN/LnTxjEQQ2LRdT2ck0X7oS xwMnCVVA8r1QDsiWCZ3eOttwC9LHV3DGb8gDeB0QB3O5a2W5+3ja/0hXTG/Ppd66IdeE 150A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704459260; x=1705064060; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=d40lSfWrrCSZc4ktJMn61Xq47E9/IHmQI6CiCP/ov7o=; b=qQrVmlPTZ2tlfsUfA6pPaaNYo2zI9JLf/970QdL4FRpCm9TGl52bnYw3OYWaWXx7Hn RaBw7Xavz3cQsH7p4uR/ER1PyL0gj+jIpi7tczb1risUa2Ztz8HyCuEo2ffim5jFhhn/ gV+uxohCIGEjyGBKt3zqoIUpDhU0nK9Qm9aGr95ZJtSzmXjXCdDg4d3IfaV348jglRvL 97KJKlS208qjlflQ/oN+xz+tsl9Duxj5ANBerq6huNU7LS6oXret5Pdaj2YK3rUq1CZl 5F5JHXBUwIkpXO4pCbmCyZs41yxo4NTMhr4sw383Ow6XwB+VmDgpHqBO7K+hyZALX8VN UiZg== X-Gm-Message-State: AOJu0Yzxgb/vG3L1CsQo92B1ulmusqmbiPJO1cy2dWcJwR2LWr+sOtts 8GzCZsi+V7dCfWhqFg5ZaHP1NlM6E24= X-Google-Smtp-Source: AGHT+IGINvRvusCXLbq+8cVEh8D0CZyRlbT5vW9t4H2NQm5fEZ3QD0U40ir4eafBWZXVfGUDMW1MvQ== X-Received: by 2002:a05:600c:225a:b0:40d:5cfe:5bf3 with SMTP id a26-20020a05600c225a00b0040d5cfe5bf3mr1106677wmm.29.1704459260239; Fri, 05 Jan 2024 04:54:20 -0800 (PST) Received: from [127.0.0.1] ([217.38.59.169]) by smtp.gmail.com with ESMTPSA id b1-20020a5d4d81000000b00337405c06a6sm1352629wru.48.2024.01.05.04.54.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jan 2024 04:54:19 -0800 (PST) Date: Fri, 05 Jan 2024 12:54:15 +0000 CC: internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: <3828a559-5dae-44d1-96ce-dff1a8b07c18@gmail.com> <99C434B3-3953-4E90-8DEA-94237332219D@gmail.com> Message-ID: <5BFA02D4-6065-4A39-A944-4F1B92818780@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs From: rowan.collins@gmail.com (Rowan Tommins) On 5 January 2024 12:18:51 GMT, Robert Landers wrote: >This is easy to handle from C=2E If the callback takes an argument, >don't fill in the super-globals=2E Again, that's compatible only in a narrow sense: it provides both APIs on = any run-time which can do so safely=2E You still have an incompatible upgrade to make though: if you write code t= oday for FrankenPHP, and directly use the super-global arrays it populates,= you cannot take that code tomorrow and use it in Swoole, which does not pr= ovide those super-globals=2E If you write code today which uses callback parameters, you can take that = code and use it unmodified with any system which provides those parameters = - including async implementations=2E All that's missing for that to happen = right now is a standard format for those parameters=2E > It allows legacy apps to be slowly >"upgraded" while allowing newer apps to take full advantage of a SAPI=2E It's actually quite easy to add most of the backwards compatibility needed= for legacy apps in userland, by populating the superglobals, and running a= n output buffer to capture echo etc into the response=2E > However, if we go into the design with the >concurrent server story in mind, I think we can create something much >better than what is available from FrankenPHP=2E Precisely=2E That's why I used the phrase "forwards compatibility" - I'm n= ot saying php-src needs to support all of this right now, just that *the AP= I design* should have an eye on the future, not just the past=2E Regards, --=20 Rowan Tommins [IMSoP]