Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126635 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 qa.php.net (Postfix) with ESMTPS id 7AC831A00BC for ; Sat, 8 Mar 2025 08:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1741422064; bh=DOrRaaOkzku6WejpkQ0Y04tdcicGtXHuA+kW2SjX+yY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B0i1iG6GyI+44VKJg5LFDMz0GI4ZDmXc6XiLjAGkOF5xUdadLazOLPXLjZQQjRm/P KqKE8CweGIQeBn2aNoeVe5JOUqXLbBCEN2E5x2Pqr3vr0zih3fRh2kVp9woscdcByg gs+C5kAU8XuM8X+ozt4q/giaGmMMVC6bAgQMp0VaNbAy4KJNcB+pXpPAM9u73AUnEX +S95Siu0m/jlhatXRBbcQiLK9BWqzyf2ppcC/Alin7QCAdWHgwNzOxFMs/yELzu53o zKJadVP+XXm2WqtZMA2V62KYL8YL2ijFogeU2zET5Pu4AUiv0pt1gxCWt6EbkMkr9X JvmAWpNLUq6EQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B498618006B for ; Sat, 8 Mar 2025 08:21:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,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-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (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, 8 Mar 2025 08:21:02 +0000 (UTC) Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-e5ad75ca787so2238345276.0 for ; Sat, 08 Mar 2025 00:23:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741422217; x=1742027017; 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=DOrRaaOkzku6WejpkQ0Y04tdcicGtXHuA+kW2SjX+yY=; b=Yv00Yf7fj4r0EHzBGPFQ+HBnm/Z/f3jUx4HVtVInpEXqRt6SbQFecawRUm6Bd7HCoY DFrbcxqPOexw2XHSv+Pzf6KQGFPu8jA1y/SGdTrMkUlqd3gJHUdNNtgYLj8vtV8jfRzL 5cwKUpqNg1pMCK+MeRvqbquddGuv2g7aoWTCy/5VhIlwNOnqjQx4yKyMtIyLzG2xr1qa c/f/bsWTiSWfLa6VJPIZO6fno2sp1SS5BmV0sgcQEh2uT135VtwLzAmwlr6bd4rvMo3P nrAnUY4rziv3nJ3ZP+7gGNfBwwcqXvo4UxOMvgWMVzLwwQjwLaZkDmfO81A31ZSbgMO3 2/tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741422217; x=1742027017; h=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=DOrRaaOkzku6WejpkQ0Y04tdcicGtXHuA+kW2SjX+yY=; b=PRA/IKZ79Fm6zqKWUkd2882Zcgh+DIQ8hOVwg++tZXSNFL9Ae0u720hgpuh9vsPrY9 9SInuQWq9wqlRuC7ScGEgSnV0nBckF760OyxCBeVriv3GPnJlD2IKVTP5mBw+wdbgMX4 /4YC5QTKSViGkYsxfrWgyebl2o2MKMMVkpKNXKDRHNfm8+qnUi4HvhIbcej/ALh/3VDB IsLmR0cXE1roQp+tc3AdtuAfnBoZpDQDoRyJEBq+TimVuiXI91wJxVr8nfgZbFfo9A00 NhSFc2kAnWDsZRVpnGsZB2yBkE/EyByMEaAuBonhd9e+zTjfpm+AQAD4C7BVCc/5A+An wRHg== X-Gm-Message-State: AOJu0YzMp56mLCSsp86xK8XXDDQF4WR6PyB1S5STeybjkKi+YICoh4e2 zOiCpkYBLKT16BeVO/4Q1vLpalhDkhw5iggaMox3BR6t7057SpDIqYTMQMilsSMLSYCOosCQanW WO2GshCZ3lumqG8el2qHLUvDhmxA= X-Gm-Gg: ASbGncuXJp/CJ2wz03Dx3+qXOJltQVdcjp7n+LRMohRHdBJWOuqV0m4WFcT/9Wggq1r 5Bf7fPVFu3TFqWhCJAo2AQYVLyrQtJFjzkNamhGlYuFXtlZdnFchL/F5YMt6lu/g5tQSXXkI1oQ U5HS5pmejhiEhUneOEf0u7nmIAmty6 X-Google-Smtp-Source: AGHT+IH+/lNO53+HkBbYQs8rjSmxal2PD12Jp7WWnmMDCWg6zK3k7ul2dzyxyLscH3I4VuuD3Kxu7VhmkbRba0LQkQY= X-Received: by 2002:a05:6902:725:b0:e5b:38df:b44e with SMTP id 3f1490d57ef6-e636f540655mr3233758276.2.1741422216934; Sat, 08 Mar 2025 00:23:36 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <9964db8c-0ffe-43d5-8246-47fc76b07180@app.fastmail.com> <78a03dd0-fd4a-4f4a-ad8a-37e5704f06fc@app.fastmail.com> <08c8ad0b-e8f4-46e3-99f0-b80748d40b89@app.fastmail.com> <07973EAE-2D83-47A8-8FA0-84286C77C02B@rwec.co.uk> <48d66433-3ae9-4895-8361-7c81a0a3670d@app.fastmail.com> <05c426b4-4cea-46c3-9013-aa6cfb8b18b4@app.fastmail.com> In-Reply-To: <05c426b4-4cea-46c3-9013-aa6cfb8b18b4@app.fastmail.com> Date: Sat, 8 Mar 2025 10:23:26 +0200 X-Gm-Features: AQ5f1JoBLQJ0Iq5jJqjO-pfEcdLkzYjyKUcPb_0RyLUkNTIDd8SwGyPY5wv18_Y Message-ID: Subject: Re: [PHP-DEV] PHP True Async RFC To: Rob Landers Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a50215062fd07483" From: zsidelnik@gmail.com (Eugene Sidelnyk) --000000000000a50215062fd07483 Content-Type: text/plain; charset="UTF-8" > > wrap it in a specific form (async\run or async\async, in this RFC), which > ironically colors the function. > It doesn't color the function. The function is unchanged. Any existing function in userland do not have to be changed in any way. It's calls do not have to be rewritten into await, and all that stuff. This same statement comes as well to all built-in functions like file_get_contents, that already return needed data, rather than an promise object whereof we could possibly fetch the data from. --000000000000a50215062fd07483 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
wrap it in a spe= cific form (async\run or async\async, in this RFC), which ironically colors= the function.=C2=A0

It doesn't color the function.
The function is unchanged.

Any existing function in userland do not have to be changed in an= y way. It's calls do not have to be rewritten into await, and all that = stuff.

This same stateme= nt comes as well to all built-in functions like file_get_contents, that alr= eady return needed data, rather than an promise object whereof we could pos= sibly fetch the data from.

--000000000000a50215062fd07483--