Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129245 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 618F91A00C3 for ; Sat, 15 Nov 2025 21:43:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763243009; bh=Iyfu5gamfTgO8oJK4kYIHXmmdGhCIW+eoXZ0pFq2pAo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gdLFW6IqM9tf40t30Mz4THXfKEfdQ95vyzYaqoiTuIlOl9EfwioU6PWdB8glDISsf NkzcsZ/FKoy9GRNo2RSuH0Ot2APOtWb8sdsbLk4vM6wO57tSiylAxnpAHi8z57kOaz FBMlKczcGOHw2WMQL8m2DEeF2z8xvMyqA7bt+2G1J8Jk7HqUsrEe2tgMUmV1QQ2DSi EDso+3+8h+rf05QR4P7NLGaCtQVzTrm8hGmcJFhMt3KIG3VQY91gDzZu5U7cwk3qGq fs830VltLnhWeZyfO379zqc4D6cYfKO5SXbwejsUoSWyDRcOj11ptOLzZ1HH3sFt6Y VaCPxdWuRSAOg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9ED991804F6 for ; Sat, 15 Nov 2025 21:43:27 +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-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (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 21:43:24 +0000 (UTC) Received: by mail-vs1-f43.google.com with SMTP id ada2fe7eead31-5dfd0101905so582610137.3 for ; Sat, 15 Nov 2025 13:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763242999; x=1763847799; 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=Iyfu5gamfTgO8oJK4kYIHXmmdGhCIW+eoXZ0pFq2pAo=; b=RIYG+EXI3gji0T42n7pXxkPSmNpEPHhQBnXc6hbSewy9ZZMUHjH3TCop3ERNL8PlBf 8hgnhNOPceDdSsaP2XwOttQOkcXPyRzx0keC0f+XY+S2qq3d23HXPpU0eFuVHXaCAPq7 eDqA1FTrwEreaDfqs30PIlbm9kZ4q9zPyPYVlq/mybjt6PCXixtuQbaX9q1xziyfEO4M DjvLu5+oOFYTe7mZ9SHEGWUAAsWJSqPcKdX1toiGipXcPvDAO6IKwwqOitjoJ1A6P0zc dPwGDjuJw94/vKqqrFrhGaX/sfJzBjaaiTLpSiAbeLyOkyUZmjRD4aoOXqRpQb1wNDKm ml0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763242999; x=1763847799; h=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=Iyfu5gamfTgO8oJK4kYIHXmmdGhCIW+eoXZ0pFq2pAo=; b=JiQ9LVcGEB/hSZmwefYjeMc6y++8seBQIRz85uplpO/IJKKghaI0lii8q99NRNeyEG HTjqLXymhgBQdJ/7JbkfyLH5rYS7AqcvpSIIvUcCHp9PasxwD2qAVYOli3w854rkS+zF lTbqLLYsw9r0EsoaJxZMhMpTnrq3tKP65rByL6p803WDBqUJI1WKSHvzxnQozkH8g5Ul S6pbM627N9U1eftAuJzykzPxXt756ljnVLdve/yV3GKqwn5tEikq0emFFk7oKn06r6/F ymUcT6H8DcA6KQnMU8eNmt8e+JKCwu1sqnogWWr9/MXyhf5b4M55lO529LVRhtBfxQKb Fn5w== X-Forwarded-Encrypted: i=1; AJvYcCUvxPT8Qnl3ozc+YqTZH7Ub04IrTib6Mvb2U+TeqwYvRyMXrl4ahUhJX3V2zaXelidOvDATJakgOUg=@lists.php.net X-Gm-Message-State: AOJu0YzmJTWZGcqqZ01QuM6o+MDZDOSC1H/m6JlwhuTtQKAC/squPLf3 IhzHayCGqywZirDcl8jIg5rhAsJ7PQoDSheh1p7dz5t3ywUUWsinw5ONDtXjZf1nBJRf+B9dewP wxrDzcVxpxXLgHOUxcTDv/enC0ERWei91vI/S X-Gm-Gg: ASbGncvffhkqO1dN6ioW+7iZfDcPw2KS4L+jjTpv3FadXHmi5zgDBAnNpCgFe8wd9CH BAuxqeNiT4Hht+i/bCI362pFgk7NVRN3zWzNvbcOgarBCvCYMRpCweZn09oWBUI/toLhe3hYqfn A3am7pAPvHTnvHg9e0FPx8Tdm1nXLXwyiVxe6yZKmjTLj+GBVB1TvLLDnzE0mRgxX2KXib2N0KD 3GK+tlXbtxmfoXMHZL/uKcNCR78qYLidmsiIrceW6EylVdnJYFmlgQVyTHMoj5ODeqNxfgKWcdJ j8ko1wz/uN+wI6NbhmlNE29AaA== X-Google-Smtp-Source: AGHT+IHVWC4yxTBvrVMkJAZNpiku0vxA2X0XOwJKhxuByWORamVXZ5p2kmfqf2e5Fl4biWwIPX/cmoB0MPIitMXB1nA= X-Received: by 2002:a05:6102:2b89:b0:5df:bcf7:3d97 with SMTP id ada2fe7eead31-5dfc554408cmr2707869137.12.1763242999304; Sat, 15 Nov 2025 13:43:19 -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> <12D52EE4-62F4-42AC-A17D-A8F3A19D2433@zort.net> <0f37fa44-dd56-4773-be33-f1ba57eddcd5@app.fastmail.com> In-Reply-To: <0f37fa44-dd56-4773-be33-f1ba57eddcd5@app.fastmail.com> Date: Sat, 15 Nov 2025 23:43:07 +0200 X-Gm-Features: AWmQ_bnBSq9N1eLrzYE_g3xRNmADRb3okj1EcO-ObKcEVkyerzqlCS-opJv9FVE Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC Stage 5 To: Rob Landers Cc: John Bafford , php internals , Jakub Zelenka , Larry Garfield Content-Type: text/plain; charset="UTF-8" From: edmond.ht@gmail.com (Edmond Dantes) > With property hooks and implicit suspension, event this becomes unsafe: > A suspension can happen between the read and the write. Another coroutine can mutate the counter in between. The programmer did nothing wrong; it's just a hazard introduced by invisible suspension. The risk of a variable being modified by different coroutines does not depend on the transparency model. This effect is possible in both implementations. Even if a setter triggers a suspension, it does not affect the logical execution flow. Therefore, no danger arises. The difference between the transparent model and the explicit one lies in other aspects. It seems this discussion took place in March of this year.