Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128777 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 9FF921A00BC for ; Sun, 5 Oct 2025 05:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1759641769; bh=FTODX9yJyzJ8uW5wauO8fVavP0V4TAh4VhYxR22RPao=; h=From:Date:Subject:To:From; b=eO1JWubeBN89znISlW5ey/Gf3jSEZQaH41GkjYxDnleKgyJbB8T4VaLT9l9U7oN0R eyQiP8cukPqZ3ZJ44UcWpPAS6gam6PY5g/V1gAIsLEiXBcEI+yxJ2UjRDxgweLlPY0 BGgmhAiwhuim3xn7Pd6Qry3MmxeAV+fYu2XrXxKEVH929rpk852T6ZcQPZiZTRfGTQ OJKWKSRz7IQkg6tMo9F9vPSfI2Tw5gelU/pshh8P3dmhOxV9ZQr5pHccXBy7U4zc2O sf7K3uiFFw75f1go9iQcaLXsD8dQNJXvHNcNBwaM56PKVV/IVpH/o8vkqqZH9YUbQu n9Wdx25Z5YwDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D607618005B for ; Sun, 5 Oct 2025 05:22:48 +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-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) (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 ; Sun, 5 Oct 2025 05:22:45 +0000 (UTC) Received: by mail-vs1-f50.google.com with SMTP id ada2fe7eead31-5ce093debf6so3756614137.1 for ; Sat, 04 Oct 2025 22:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759641842; x=1760246642; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FTODX9yJyzJ8uW5wauO8fVavP0V4TAh4VhYxR22RPao=; b=VdXONemHuN0/lAEnD8QXtelAJRv9bYmQAs40alsJvRfqsXubfJwNhPS2eF6NP2KMxA BoCcPCpkbNcQNYi8WYgyqCm/9A1cP/K7eGD0eLmZPyEKh+TwgRKscRL4IiybX1Z+1QWr yKtMIh6UVepXhmKXU/5mfR59NlsS4WIipc54E+ozExschzkL30HuRH64FEYCya2Tul1c 1Yf5Rb9eeZpORjpHYw8FEuf+Fe8A5HbqrQ2ev3UOTz6vHmowQjaF6qtr27AIRO+P6IhN ZUkDWu36GbHduys6gv8uvl0S2wpTooQK3i/GILzz6YO8EjWh1KPr3aRU0YxNCpHr9rwy XetQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759641842; x=1760246642; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FTODX9yJyzJ8uW5wauO8fVavP0V4TAh4VhYxR22RPao=; b=L42hKK3aPNyRfi48z+crj6ezETAbsk3aJyPzd+v+JThulDMFjaSQU7EA62k7KMOJO2 Yb8fctbuya0XVYRUzOiqC5CNnBRn7lEZrac9bZhbHKoDUXmDKoRH5KwGf5aHpg5bO+Cc KEalD59NpRLV75DOjz38W0URgKXwPqG3dpoItWf6rzeKEb9f4AxDHXj1vKqUwamb8UAh sGVIk7FIeWoRTJfsAd6Dub+D38z4eaFsG9aX2+PRf48aBRQ8uW+LIaA2Yx9Szq0wOhll dKqSqDm2rI0P76FYrG7Spd2jJu6gC8g10PSS6qndieQW321zaVFCXSVGQkX1spBh9sTS 6cqg== X-Gm-Message-State: AOJu0Ywdt+YnAC7jRtSnHAmaUFQwF2UG/BwKr2BGq4lP0Dsu7q7pNyat iZUga2/CtannTxqqzGgq+mW4gjNEP9IhUN+geaWWg8XgRytaZsz5PoMU6DN0INLbhGqH4uGXgDp 4Otpv2D5DGwkKXYz6OBd88a6bU1U1v5wDusFg X-Gm-Gg: ASbGncs3kGBZ7Yos5jF4+/TpSbfczF81jzeCA0q1Qf/j3dcvFq3prlIDMvf/z+BCIcS 901Xrr9iAWgIoUzHVqxB9gk/JOdz733sFhL7hoWd7dS52t/wEP9F8J9qZHGAR2qmntUf5TJO7nT kCGInQmGDvkfXdXIG/hwzrcMa1T8EdO33QJALzHikUlG5reQeyL8xQ7o1TEOFR4zRZgvtnURcRM WATmdeinxwt95oqsg8zhFKgEkfkOYA= X-Google-Smtp-Source: AGHT+IFSeYRamzCJDMq2TXl4uD623Hye9ZT5B65jY9QlMtgousQ5HfHzEPG96d/fS5bAkU+foyIlofEHIvuBwBHiCIA= X-Received: by 2002:a05:6102:418b:b0:58f:31da:dbd3 with SMTP id ada2fe7eead31-5d41d05b7cemr3296595137.13.1759641842065; Sat, 04 Oct 2025 22:24:02 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Sun, 5 Oct 2025 08:23:51 +0300 X-Gm-Features: AS18NWA-F7LHTDsnViOdu0w041edyrLueWTx4zWCvsdoFBjRcIVWnSsAPuX4SyU Message-ID: Subject: [PHP-DEV] PHP True Async RFC Stage 4 To: php internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Good day, everyone. I hope you're doing well. I=E2=80=99m happy to present the fourth version of the RFC. It wasn=E2=80= =99t just me who worked on it =E2=80=94 members of the PHP community contributed as well= . Many thanks to everyone for your input! https://wiki.php.net/rfc/true_async **What has changed in this version?** The RFC has been significantly simplified: 1. Components (such as TaskGroup) that can be discussed in separate RFCs have been removed from the current one. 2. Coroutines can now be created anywhere =E2=80=94 even inside shutdown_fu= nction. 3. Added Memory Management and Garbage Collection section Although work on the previous API RFC was interrupted and we weren=E2=80=99= t able to include it in PHP 8.5, it still provided valuable feedback on the Async API code. During this time, I managed to refactor and optimize the TrueAsync code, which showed promising performance results in I/O scenarios. A test integration between **NGINX UNIT** and the **TrueAsync API** was implemented to evaluate the possibility of using PHP as an asynchronous backend for a web server: https://github.com/EdmondDantes/nginx-unit/tree/true-async/src/true-async-p= hp During this time, the project has come very close to beta status. Once again, I want to thank everyone who supported me during difficult times, offered advice, and helped develop this project. Given the maturity of both the code and the RFC, this time I hope to proceed with a vote. Wishing you all a great day, and thank you for your feedback!