Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127482 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 7623B1A00BC for ; Tue, 27 May 2025 17:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748365181; bh=gNCBEmAevboTwveSMW4i4yMF7hvQNVyhKmMjRxkcqpQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=EnzkmyAl9+PJMmlJaAhAZUtg7iAviZ1B6ofZFdWk2O8PEqQCBqnIz5gDmLRstUgct l9up8zntDAbx9TYjFrLJ75+b6V/jER+GdcgwYgbSG0VWVBuPHArxsXR62IbmpohTzD 0QzgQ2t4T2x1Lj3S6+PZDhwiq0BXN5QkMyGZtMP+pSi/MNhgFSQcu6N4biqv6qN7vC ob0cXbddXzFwcD+7lYZHBhijpjO2YwZYF4A9VvMf7zrEFfxCj7Mlisrr52cKz6+z8c 7EOi0O3X0wRnCKLJEHbB2lGatH9uonxtyv4g6Nc872g3yWxtXdRtUzPAZGJIP7RCMl NZoxra2KmzVyA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 535F818006C for ; Tue, 27 May 2025 16:59:40 +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=3.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_SOFTFAIL 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 xdebug.org (xdebug.org [82.113.146.227]) (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 ; Tue, 27 May 2025 16:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748365305; bh=gNCBEmAevboTwveSMW4i4yMF7hvQNVyhKmMjRxkcqpQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=dSlbRXcOs5Y2pdErL1qdgzC1qCh01DxxN7XaGtBglBptTp3q45msjzlIvK8Ypa/wA uO4rdMNKCmDQlK1uzdzvzqW3BwF90+Kr8b0pe46QUhndKUouBbVubJG1RHRh/MXGOb 8z850TpaRX6GhzOOTuAVkc+Ubv+lBCq2ksBiCL/woEH4teAf629F5zfeAdDND3OeU5 cAY1aMaNS7YL/w23Hin7IOsqYyr6CxGE7Pv8CGTKdzpS7jz9Gd1aadfWcMud6ThafG EGvQnKh//CJZrtYoRPfk0aHALY/BJHMLWZP7vfK3Rmjwg34oCojdlmu/IFvXqyu64p EC5d6Mv2npGhA== Received: from [127.0.0.1] (unknown [148.252.140.227]) by xdebug.org (Postfix) with ESMTPSA id 4142410C025; Tue, 27 May 2025 18:01:45 +0100 (BST) Date: Tue, 27 May 2025 18:01:41 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Add num_available_processors User-Agent: K-9 Mail for Android In-Reply-To: <20250527163747.ADA6D1A00BD@lists.php.net> References: <8b76a3d4-4583-4849-a75f-00f645191247@gmail.com> <57f7ed3e-6bef-434d-83db-fd729ff43fc9@gmail.com> <20250527163747.ADA6D1A00BD@lists.php.net> Message-ID: <0FC66A63-1284-41AF-AA27-27F657EB57AF@php.net> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: derick@php.net (Derick Rethans) On 27 May 2025 17:37:47 BST, Ben Ramsey wrote: > >Are you suggesting that the function itself not be available or that it t= hrows when you attempt to call it on a system that doesn't support it? > >I don't like the idea of the function not being available if the system d= oesn't support the functionality=2E Users would have to call function_exist= s() before using the function, in those cases=2E This has been the accepted practise for years, if not decades=2E If functionality isn't available, the function shouldn't exist=2E We do th= e same for posix (such as posix_getrlimit) and DNS related functions=2E=20 This also allows for polyfills=2E cheers Derick