Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129363 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 7A9001A00BC for ; Fri, 21 Nov 2025 12:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763728419; bh=2jgXWAX8HjTSEBrpu+aAmtdvwFE1QpOCJCYObi9NTVc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Q7eAeFVsBGvjpVpnsSCYXDC2uv/WhTbjf/XrCl/AQrDI/GIoUeeXrRfIDdwjxY+Ei XxwtW5PuN2WzRrROhjZPhHJUy404p3ktAYrkC+ePaJoiJi4Efa+KQPLcUG94i3QkjW 8O0ufjji1v7/7ivduZHM6uupF2ylnSb/oKuIa5OpFdc8qyuJsxULMQ/XcEWdqSn+aG hl/GxF2forXx8BKRL82Dk6lMEvgP8WP/NyATZ+p4dqMn02svgXR5uF0A1kKc1fQ/GF 4xzRkNrMaM3y0AqeTM4XFc9bg8oVVjX8vT4pIFJtrJVAQCLCMW7rN7vglLYphH5HNB mUZo425sbFNqg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5F3CE180212 for ; Fri, 21 Nov 2025 12:33:35 +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-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (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, 21 Nov 2025 12:33:35 +0000 (UTC) Received: by mail-vs1-f47.google.com with SMTP id ada2fe7eead31-5dbde7f4341so2640220137.1 for ; Fri, 21 Nov 2025 04:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763728409; x=1764333209; 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=2jgXWAX8HjTSEBrpu+aAmtdvwFE1QpOCJCYObi9NTVc=; b=emDIkLismoEiAFBheghShSa4XdxTbMVPzce9AXed7Zm0asnduGmDEK/7ODiF+3ntO0 nNsco09/dlidZXFehyGicgldQq3WTdFOMybT/uLrHl00TSW+2ybntFTyQTozamgxq+SI 9R30v298GiTiJKF/y8Vd5BH2zT8QTnsg+FUKwr6cehtJUtFEphyGs9cdMTsjDo74r4wS CzytpSwRQ0rhLVcepZl1Shz8K3LJA+Aex5kK69iWH50SAj0Ci1wNKJ2F1jSZX/x55Ru4 Wf7A9Q/pKaWUc3CTM7hcdDzKYgEMzRA8AWd6idycZBfiYdaKeY5H9YTWP1PePka84L8P 0DcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763728409; x=1764333209; 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=2jgXWAX8HjTSEBrpu+aAmtdvwFE1QpOCJCYObi9NTVc=; b=mWj3GsHP1v2/uPE3+5mlXbbAelWIzBDmif9MxmTdlAuMAoPbF1BL1t6HfoUi5+gRJP YbSw/+57YQhDOgrCs96+XYRVUffstfBenWDQz1NXJZ7mMYe1Zk8MHlKDfB4LRYAAbKnx vXRM49L46c3T7FkMqOLgKVQv0TslSwYe247hiobtca77+ckQl+OSQnhySl26ccJyBDWv tB7h7KeWAtJ3RCUlTw+MGX/w/pb5GGIWZK8mH0WOlEmNGeg5GpFUMbrwnQDYdNlupKjb XOVPXjrIlVKBLUzuEhb6ArREMsZuD6v9+jP5MXnL9EQTZT6Xntbk9f4kwQscEdnsTh+s ODIw== X-Forwarded-Encrypted: i=1; AJvYcCWeoTNEyIeo/NvvK52riT7CIug+ezbn56vzo3LLp1vPyi3ui/wjg4oXflZxlUd8XEgb+rSsOD0HUpY=@lists.php.net X-Gm-Message-State: AOJu0YyTXD/rr9YUWJH9DaQ2x8tnPeZipCOmUTp28hJ5S5BUk42acnHs RLh1TQYrv7jOtQP9K2t8PT9FU5fnRfK18vPYU0xnvDPKDyJsTXeeJXd68DZmaQdYWlL+IXFwUu+ PKvYadTP7EqYSkyGKstnZbOKnorcGS/DOXlV1nes= X-Gm-Gg: ASbGncs/pOXuH/4Dnl4IVPsQwMz9T0OmlxlS2DGrk9UB5pfVDowbjYBSavWeLMV9cME qu5UyLPeuAHNJxK7XzDT2GCtX0PjWu4HuhvBNDMmTYNKcCccdG3auVVezvSwy6kvHWk/OzlOMfP EnRWvAkQdTMbzjtnUVkiugUsn3S9ZH/HDRHEQjiueV6T8U1LJICHeNu7JQJPlZlE4dTOqPWwYMW uDS71ggSYwOerRoFb4byZdGYlUlbDCUjvXH4jXdtXkHk/paE5Gu8+kS062STKXRv0HzUdysRYdY zlvFP1u1rFsnbl2H5k5rxwjsZVV7xn9BBWFYWw== X-Google-Smtp-Source: AGHT+IFBeaWRG0LhGLBb2F2uFPNG3SbmnZ8QaNh8IqsW6aRiEKLq27K1HXbTaSvS3Z7weZ4IVLvO2BS0emgvOrZLrJk= X-Received: by 2002:a05:6102:54a2:b0:5db:3c3b:7767 with SMTP id ada2fe7eead31-5e1dcfaca59mr699752137.16.1763728409428; Fri, 21 Nov 2025 04:33:29 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 21 Nov 2025 14:33:17 +0200 X-Gm-Features: AWmQ_bkG9UHwCSMGURE2X9f5ja01tjNFnQNSfYBDFzFw5Hq9pUi6_Lq7o3j0ohI Message-ID: Subject: Re: [PHP-DEV] [VOTE] True Async RFC 1.6 To: Jakub Zelenka Cc: "Rowan Tommins [IMSoP]" , internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) As for next lines: > 1. Disallow suspension of the main sync code which is effectively some so= rt of colouring. > 2. Preventing access to globals from coroutine which I'm not sure is even= fully doable from the engine PoV Yesterday there was a small discussion about debugging capabilities in PHP for async. For example: throwing an error if more than one coroutine writes to a varia= ble. Or issuing a warning if someone creates a coroutine inside a function. This can be called an extended debugging mode. Almost no other language has this, and if we implement it, it would be very cool and very useful. We can also come up with other ways to protect PHP users from silly mistake= s. For example, blocking async entirely or per namespace. But I don=E2=80=99t think discussing these features is the top priority rig= ht now. All of this is nice to have once everything else is already in place.