Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129397 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 C8E2D1A00BC for ; Sat, 22 Nov 2025 15:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763824214; bh=XWHPm55jq22XqsXrGczQxU2As5I/CWTYC0qi76/fwQk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MGduODDuIi2GcmNMZ8LsqsbfkU4Di5YTCpyBrg6iwROCsVVFCCk6lEjV4djma/Vhd IRHYAut9xdzir04lMGw5TwUzoJbY53luAVWfztoaa7PzvtYx3Bx3gxiZwTgsSZW+dl FlANmY6AIsfWmQOhjCRBePq4Mq146PO2KOnd5kIsel7Dwc6j7mk6TQ6s+yHFQFUsQ/ 8m4vsBbIe2eDC3+16aOc1ZVcrTVY8JNvFxwj1O/sGuo/uI4/iS59lqEerbwmCnisOv hHRmWK5VEqE60sIVfy9M816RaHEUugb2ztSeZSSPNIWvMLsiaX2K2npIAXqU1x+kbR ROqzg6hhZuzQA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A10311804D8 for ; Sat, 22 Nov 2025 15:10:13 +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-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) (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, 22 Nov 2025 15:10:13 +0000 (UTC) Received: by mail-ua1-f45.google.com with SMTP id a1e0cc1a2514c-9372164d768so2396838241.0 for ; Sat, 22 Nov 2025 07:10:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763824207; x=1764429007; 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=hExiaFjva0iMDHdxyee+yfbx0J7nbS/q/VF1cMGtvDY=; b=Ffkow5t6SPTB39GECEn2egIIIDDJmuqBpfvdmRocKtG5LBtqPKL/n9/qL1YfV4YO2z fLb5D/n9Jd4NQQJV8PeKWFuCIUhDPZtv6kcalv+lskX4xsYdLonvi0DfdD+NnTXJWIxW oUMHwWDKvaHw0nonl1NaE/bMF1EKn4WzAhdBHY65bKFk0fN1xO/n5voRh5FSlpi2OA29 j0hPPwhgBCUqijUSJ9Hb5f2PoLzU4Umchn8BZtwmbsTn/gtbYMp4DPAzHSOxTyfTJwOb RtaFOgc+h0mq2dn3rx/1gER/dvWuhECdjaxwWQ3Jo2Nqq5Y5LhENkCLCZSwYhFVheHav e2xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763824207; x=1764429007; 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=hExiaFjva0iMDHdxyee+yfbx0J7nbS/q/VF1cMGtvDY=; b=tEiWOxHYC4TcQJQmBNdKHuBhI4mFlsYoit8FH+VhPSQcFhWPW1sddKTFXi/mhqw+06 LbnW4VI3PiWBy4YyYYY2sXs9EOfdAZ1rDKOt1pvTvOHEVCExFVF0/xDpvHu1dcZwCVku 0V5MYu5dNlsLyDclMhP+Pwup26NDt7d+Lf18wDbEO9c5Z2EnOVsfZ7RN+2yihSVwQ85U OEGM/nAGv5/mkPxW0ywE2KICQYlx3gIjbfq7BJBDNfBrwwtp/32Rl3RVihACchq+qx/I vQ5MDMqyzpoJXKyjOYSvhJ0Cih4xH1RGaVx/IVGWnRLQ7x19nl7i/u9+70+/Vhd025n7 t/Jw== X-Gm-Message-State: AOJu0YxMajxG9mx2SjbTCw3QPJWq0/jQrQoniZCEKuk0XmhOBg46ZxCz 2RdAo58roGxnjpmsMJW7pRX0kgD9ePphKV2lE5FcdcWzIuixjxUnOh7gL31XEAg7CHdrYtyeD1d X6jseHmZdUK7wv3lts9tbAwp2K/zllemu3ZwZ X-Gm-Gg: ASbGncvH7KFyp/WtjigSr9fYw4fV7D68Wy+RKT5Mek+MiqWSVXTm4gnMABnF5tYLk+F M/dl9eR90kStEhYP8ANuuPLwvng3qA4FEg3VhdOv8D1mrvnwScHieOZN6eTprdxUc/HHdscKQZ5 xTzWqtOLTbeSuWo3KY6o4r0S5j43883FmbdGEUslIjQAGNAuX8glqn7NsUVnK0Q+AwW5GJXDqA1 XgEjEC+rkzcHvh2N2EuL1Vzip8IAa8c1s8c/4nYrSPydzuh2vfx7K0hs2jxOhsiboCccb5tt8Kn J2VpJ/zuWwGP7p+trjzKuaQe X-Google-Smtp-Source: AGHT+IHF/E8l8n5w7v7ffC2L2yfAFgFEeukK5HTUNUhVxti8Lfpy/zjWqPAexRXvxViqafghiVd9BjdGQWXMl/q+M5I= X-Received: by 2002:a05:6102:c89:b0:5df:aaa8:865f with SMTP id ada2fe7eead31-5e1dcd20a48mr2830815137.6.1763824207537; Sat, 22 Nov 2025 07:10:07 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <383528143.397454.1763760932585@email.ionos.de> <691963327.399484.1763796022993@email.ionos.de> <1402906904.784903.1763811759896@email.ionos.de> <2015208655.784984.1763811978476@email.ionos.de> <980296152.1071.1763813573083@email.ionos.de> <92865666.4510.1763818506332@email.ionos.de> <329450798.8037.1763822426377@email.ionos.de> In-Reply-To: <329450798.8037.1763822426377@email.ionos.de> Date: Sat, 22 Nov 2025 17:09:56 +0200 X-Gm-Features: AWmQ_bl7POPzFkCxaoK63UYW-5wZFyqOKJW426uMfDzIpQHfwnEHgYtgD14NRjs Message-ID: Subject: Re: [PHP-DEV] [VOTE] True Async RFC 1.6 To: Thomas Bley Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" From: edmond.ht@gmail.com (Edmond Dantes) > From my understanding, the code does not continue if there is no io event? Yes > Will it use default_socket_timeout from php.ini and/or use the timeout specified in the stream context? There are many more different cases in the real C code. For sockets, I remember it uses a timeout. For filesystem files, I think there is no such thing. > Can I mix sync IO and async IO in one function? In essence, there is no more sync I/O. Any input/output is potentially considered asynchronous. Launching multiple coroutines lets the programmer create several I/O operations that run asynchronously. Thus, the degree of asynchrony is equal to the number of coroutines. The code inside a coroutine creates the illusion of step-by-step sequential execution with no extra effort. Therefore, in this model the programmer writes less code and uses Promises less often. > if the server uses a mixed storage of SSDs and HDDs and I only want async io for the SSDs? How will PHP understand which type of storage it is dealing with?