Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127444 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 075B61A00BC for ; Sat, 24 May 2025 17:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748108133; bh=8+WeM9UPBKN2zyM9J+poVVRD1jkQzU3eTlgE31FRUd0=; h=Date:From:To:Subject:From; b=UA/+8GsfCj+fqwWr24wrOb5UhFD9kV86zrb35DVoyvAjS4UUmJEMrIdXsFKyPcLce omjq6t1R0yuwGWTsADjCnPklh6P4x//gxQHginlmd3NFIzkyZf35ywD3kaFvHEt09B IcXKrktn44GJbvreHLuA6/qK4kjdTOtp/m4Y7C6pqLSafl+HVr7XHzcIWhFDAter4Q Uy6iibVQJ9vsIqMogVUrQ/GgF+gj1/suttDhwHI9NCv23jAwAudMUoqvjz+gZcvfUS tn1BUXhrdWHyHYMLgfrJxsFCr0vtYhzIMJOKfP9lNaXjXAD9e60D86pRpMEE92rsSv IDuu9pQ8vvg4w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CAB8D180056 for ; Sat, 24 May 2025 17:35:31 +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_MISSING,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from a.server2k.de (a.server2k.de [37.120.186.15]) (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, 24 May 2025 17:35:31 +0000 (UTC) Received: from webmail.server2k.de (localhost [127.0.0.1]) by a.server2k.de (Postfix) with ESMTPSA id 77C18400B5 for ; Sat, 24 May 2025 19:37:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielkesselberg.de; s=dkim; t=1748108256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aJEI84D9568PHiv8wNvaKYtOFsWWyvCzz6OyzF67nzk=; b=J0a/+Re03nzkNf8NnbazOl1zUpnMDvJKAUX1nf2W7Erw9I7CCvbNTpnmR9BFQ5UVNJb5RJ eCBzkFfb0iRWnkabeSz92riIPaZ3nnF0G6cyzPGe/LXtC5fGcnSqiZncC7/No2K6KXpykQ uueP2ctjz+XbpdoRX/z3xgIDpsnd3No= Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Sat, 24 May 2025 19:37:36 +0200 To: internals@lists.php.net Subject: [PHP-DEV] [RFC] Add num_available_processors Message-ID: X-Sender: mail@danielkesselberg.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit From: mail@danielkesselberg.de (Daniel Kesselberg) Hi everyone, I'm happy to share my first RFC :) It proposes adding a small function to retrieve the number of available processors; a feature that's commonly found in other programming languages and one that I believe would be a useful addition to PHP. The related PR has already received a bit of early traction, and now that the RFC is complete, I'm looking forward to your feedback! RFC: https://wiki.php.net/RFC/num_available_processors Patch: https://github.com/php/php-src/pull/11137 Best Daniel