Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128983 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id D07751A00BC for ; Mon, 27 Oct 2025 17:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1761585341; bh=G9svRyOHCyndmQ9s/Wh8L2nqK3J7bmjgsMa3/OZ3c7w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BSKg4fLEki1q/A79fTbhfS00TuhLMy/NmqHkwQDuGeD6VZYqMuOBF7yTP702Lcg4A 0ffLC/v1Bymof2v46blD0/jCriEeE0chBBPSPEyf/9B08OJ1kuNZvqEZYgFaAbh9VL ib2H6oUYk6do8iq9dRPDckKkBsDZUlC50DcJb3jEY4TqF5bFDzSaHcHbDaVcyqswef MQZC5A4T8aMQoYKkFwOyPaX7r/4aBlq6u2fdsm3Fa/xX61w0GXM8yCCxFpNdA8M5rB sYzM5JDD1HT/mO8LUxG24iHlgrV+KGdc1Z2SHUqvHQasyVPLjcFKyeuyMakGkd3eMt ZJTyODUs68SKA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9F3A6180209 for ; Mon, 27 Oct 2025 17:15:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (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 ; Mon, 27 Oct 2025 17:15:37 +0000 (UTC) Received: by mail-vs1-f54.google.com with SMTP id ada2fe7eead31-59a8c1eb90cso2917424137.0 for ; Mon, 27 Oct 2025 10:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761585331; x=1762190131; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=G9svRyOHCyndmQ9s/Wh8L2nqK3J7bmjgsMa3/OZ3c7w=; b=R6b7SNpGU5ofgnIOIkmXAcY4v0XhizDE8zg2xq2uM2KyxhyzTxF5Mdr35IpNBOBT9y h5dFn91IpN6iMMexiDZYpXCS4d5yWNxJ9Eo5iX0n3VrR/Li3MIpmLAT6zTqiSytacCsr Tf2qIwQqYpcowJZf3+5LTJdjIhyMiwvZD8MjkjIwUDgS7wnFv4ASzx2jgfr4/l9yS4Z9 BixMTZIWIG3GB2bB0auvH1UTBHamZpZ3asaqu90zNXOQc9B6+t7giJM2X0qtecT5XifC sc7owIkG+AxkJOX006331IPuQ7pE1iQL/K1QFrh9XMDxj0WkkauGI/BSzmwH1GG8LCRg F0Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761585331; x=1762190131; h=content-transfer-encoding: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=G9svRyOHCyndmQ9s/Wh8L2nqK3J7bmjgsMa3/OZ3c7w=; b=ZbayEzIt2xVr1gBn74U1mIYJ93xsIwH2mDFLsn/sGDbSONYvnkWCie6wgybn/LDUDS cXEuqxHNJOsKLmPXek94vTYqVY1n6jmzHtVDPzhR5BvwO04INLuh1wX8ScT4OfgrMAOk fyUYcvNx1YE5heeoYtLobSj7mYOA7Tg7BJDvSO2/O+f440G/pKKpF6rx5jbCmMr30K2R oIKkssESylDKmyjGMjcpZbCv6l0cNRNKKGN/Yvb15EaDxSp8rhQLBnhvHwdcQtfRzkHs r8ZuJ+0+D1I+TOdX8yujKYf2iXEVwwBPWfOfxkBYmNVoWFfzAmZECMlAG7+ydCJnUNW8 y1lw== X-Gm-Message-State: AOJu0Yy/+evy7ykW4OWmW+mM3kwqm3YBgIBx/YKgNXiZE6Pof4Fxv982 6m3o2sjKCyDi1Xk1tGZcJFhSAIxozt0AEz83KSEXB/wk+mbOAQ3ndCtmh59SQymhAArKhd+XPla +Qvi2N16Ny9a9nR1SIWz0x9hGuQb+5XqE99mw X-Gm-Gg: ASbGnct9IwkfMCO7iT72yjusW1h4N8aSrGtScZmTBk96Twrdp9603MULK+Cxl1pGbC5 F+G8QgEzSSjl1dm8Jjz6/urj65iZRnaJ5sSwXhN9LZdFHWQEdSZY4seXdUDwTQ3Q8yahstq4g+A 4uclUqpx/Y8QVJGYqbWV/ZMJplzpjRHtqE6d1c+bsxikME5VuZRKXkpxdEuL9klfqRmS7229nRT 2i+JlZN6cVf8+agoDPpcy/0vi6JJAxgAK+SCW13OrHzro8/Xa/0omsaRSue1oEoG8ueer0fCC4P 3IgpslBDrjj4xnM7 X-Google-Smtp-Source: AGHT+IFbYzEUsv2ZpglyqrpuNJLcrgRE/BtLgcpmMEyjO9SNLmnqBX0idoUy4ga3PEAux4E3+G0AJMsqKONDuLLU23k= X-Received: by 2002:a05:6102:6a8b:b0:57d:9305:63db with SMTP id ada2fe7eead31-5db7ca9a3d8mr342254137.15.1761585331560; Mon, 27 Oct 2025 10:15:31 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <889d3042-7b3e-4152-bd8c-09bbcc967309@app.fastmail.com> In-Reply-To: <889d3042-7b3e-4152-bd8c-09bbcc967309@app.fastmail.com> Date: Mon, 27 Oct 2025 19:15:20 +0200 X-Gm-Features: AWmQ_bnftFnW0VV3IXtdsGegjXSOjGMjfzYsGZjrGNvya_3wUxyUmFAlGGQL3M8 Message-ID: Subject: Re: [PHP-DEV] Re: PHP True Async RFC Stage 4 To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Hello > I am not sure how feasible this is, but would there be a way to split the= "async toggle" of IO operations off to its own PR/RFC? > To me, that is by far the most important part of this RFC as that's the b= iggest blocker for wider async adoption, > but I'm not sure how many layers are needed above it to make it possible = to toggle in a safe fashion. Why is this considered the main blocker? (Or maybe I didn=E2=80=99t quite catch the meaning.) After all, this is precisely the part of the RFC that doesn=E2=80=99t actua= lly change the behavior from the user=E2=80=99s perspective inside a coroutine. As for the PRs. There=E2=80=99s no doubt there will be several. I hope the = PHP core team will help with the code separation process and advise on the best way to do it, since it=E2=80=99s not a trivial task. As for the toggle switch. If a developer doesn=E2=80=99t use spawn, then wh= y toggle anything at all? And even if they do, there=E2=80=99s still no difference =E2=80=94 the code= won=E2=80=99t start executing =E2=80=9Cdifferently.=E2=80=9D --- Best Regards, Ed