Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129233 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 5A4021A00BC for ; Sat, 15 Nov 2025 15:21:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763220114; bh=gr639OX/WYOab/ezz6E1izwkSbkqcw553a+yeqKbDpo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CFPiOCWyd7F1WwulbKM1XwqBsmTUFviZYSpb4l2+uZmPUXBZRdA3047TGv4zQVTOU egvO66I/0KJTBWR+GHMywbzOWBFCZ7YZG+qcJEBO7kSosmurAPaBfj6aDN7H1hQVS/ m26eNhoQuB8u6qpeMJKyyDBcE+4iORq6g1Zjs2Ls5RV/maGol3sIzi+vzytApnyGWw 0fOEZf+tuv8XwW+BQgakSLHuJ49gw4ujyg3CtiRfFyQI09j2i6AFRJ0bCFbRXn4/OL Db1q51TPallFceWGX28/zWvEGYNI9xc4vGljbBsn0YrzQqywkmJaVfK6UVB1AaZ+N0 e37p75R67Mzrw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 275161804BC for ; Sat, 15 Nov 2025 15:21:54 +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,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (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 ; Sat, 15 Nov 2025 15:21:53 +0000 (UTC) Received: by mail-vk1-f175.google.com with SMTP id 71dfb90a1353d-55b265f5122so281232e0c.1 for ; Sat, 15 Nov 2025 07:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763220108; x=1763824908; 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=gr639OX/WYOab/ezz6E1izwkSbkqcw553a+yeqKbDpo=; b=SDwgD7u1Xlkip8hqifYMbyKuEVaa6RKTHlsmJYR5D+qgn4U5L1szk1DA3nIaGmEs53 rDj/YasvSNSCzD5LnTqCk63fsHQ+bHYsO/OeFG7SkUvaBKbw34ledtpGvQEElpcRcmyN p0mldEczJrk7fA3J7gJBh/vd6GE/oi0INiWf+B+uxhJX1IhfFfcfiKdPLehsJafZWa1L 51Q9r9GZSWkNAMRGkUeM78Vut1ALe5RMc1vXcx5ELmIvPkgNNuOJP2FRd+BHKtmp24Pc I4zjE12EawEAE0i2txlSSR/ys+5vUTmrezrzMOdzmQRbLHDbeWW3Yr5k5BDYHz8kl2Ck /hMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763220108; x=1763824908; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gr639OX/WYOab/ezz6E1izwkSbkqcw553a+yeqKbDpo=; b=ppT0KsSzscr+gOi1vmDm/IgsQ1HBFV9r4fnGpmK6UO84dUHa/RA09USyl4azpksCAB UBJJHVkVRGzXRoWrrsFfxc/Gj10Te9aKkmGgHPF96+OHkW0rcCm2dEtLrzRCJdMs1JV8 0lc18Vv45CEHtWLsSZYquM6w1JCWrtSvYf7kCjQEdVxKu1gRKaTt8o+J+/3DzQe2yd6H im7QPu8T38uJ3ui3dB26KEzx2xYd26a6HHCTdopxwftIsHsMr90+OXomhxmGVAuy0ExF fUzxP68HgRrk6vCjkh7k5S5P3c6K4gsTfME1+vuETVqRq5Ums8vF5h9+Lxl0fBGwdqaP i2Zg== X-Gm-Message-State: AOJu0Ywg6ilCPhoHbjpTxWsmUxRo3kARxJXNGjHAjW8dKVQGjGDzwkT8 4Hu3rfvuYqAPjR92i1rsr6wpQcqAzSj5Xadl4E+qSh7iGmuCnyoB3ffAPqSZytwRFAJHqCjYKKv 3z24ZzvgTae4sMeSW9dC8dZhUKPSfFPI= X-Gm-Gg: ASbGncsBUZ4L/BDzX7VMIhHvOIP9TuYoizl2kYqiiBUMt/6IpLUunrjaSRKb90wqKbh pl5PjKvwB3hgT7HdXYdzy4BAUBrP5rhPcEsSPEyxXHVPkk9QA8cspmhE2wcXUQGVLjm4dp0LADW k9w0JXlfNl+aR3mF+EacaQC3mxhzCJx1Vbl+ZeWYpfbX5NDxjvLKXnaSuvw9CUBU3d0EIGwD5Bw uq/RbIQkjCRSmQn6jq3qcz2Xsryha9HwLYiey4EzHrxWyasVZts0vXx0BcOdm2y74cM8obQMyGp xwXh6Dm86Jz35fUxJg== X-Google-Smtp-Source: AGHT+IFV4mr5IMi4+IRdr6OeBgzs35gkzpylzhZKqUaej2Pq+U0klWpiartDCM0rHGX3TXcONUWEsHgUzDqBuMyA0mE= X-Received: by 2002:a05:6102:330a:b0:525:df9e:9365 with SMTP id ada2fe7eead31-5dfc55374a0mr2312173137.16.1763220107925; Sat, 15 Nov 2025 07:21:47 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <6618a91c-5393-4f40-88b5-b5041ee09deb@app.fastmail.com> <3e0cf0a1-c1a3-4e05-97ba-0eeb7f559a53@app.fastmail.com> In-Reply-To: Date: Sat, 15 Nov 2025 17:21:37 +0200 X-Gm-Features: AWmQ_blZDkXiiQX5Ze6DdMm_LWYEp09EI4sxoGI-5tvwAztD2WeEXSrITU5_OZU Message-ID: Subject: Re: [PHP-DEV] Re: PHP True Async RFC Stage 5 To: Rob Landers Cc: php internals , Jakub Zelenka , Larry Garfield Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) As for: > For example, is the scheduler run-to-suspend? > And non-preemptive behaviour only appears here in the thread. It isn=E2= =80=99t mentioned in the RFC itself. There is no direct statement in the RFC that cooperative multitasking is implemented. I think this text was removed, and that needs to be fixed. But on the other hand, there is a clear description of the contract expressed in different words: RFC: "A coroutine can stop itself passing control to the scheduler. However, it cannot be stopped externally." which essentially means the same thing. This is exactly what constitutes the public contract between PHP and the developer. I included a list of I/O functions for demonstration purposes, but this list is not part of the RFC. It is part of the implementation. This means that not all I/O functions can or should be adapted immediately.