Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128316 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 D044B1A00BC for ; Wed, 30 Jul 2025 07:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753860551; bh=UAUu8Ev8k9mvBWA9gCIdgy1ADoEXtCyCr1Nz3Gv++3I=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Ec/UOOYwoA13W0PMqQzF1TNCXwS5Wi2iR7cuBirQxeKwtzqeD0LlKKF2cNwf8SSv0 Q6SpJ8RAQyt/mXk7+hJGZQFpukqPKDinjLyYMOeECKhEhPn7/qDiuNpSE+tznzQ0pq 5blMO2scL0nG+WyM4ZjxhCgUnQQ2a58q03GRHDSmk7O8tcIjJjw8BynjCON/ij6OzC 02Q7jTMUn9H2qdYUdlJG02XP7htZn/+w2FYpUepMNQCwvipPmhAVyjqYtt7KnWnVUw CHBFVbtwXbC5jFEsH8U8EmeXyPaKES2oQ+bYLqoEWV10nQzl1TFfVMFk2TqZTqKous HNjnAlvofMQkA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 28301180074 for ; Wed, 30 Jul 2025 07:29:10 +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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,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 fout-b1-smtp.messagingengine.com (fout-b1-smtp.messagingengine.com [202.12.124.144]) (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 ; Wed, 30 Jul 2025 07:29:09 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id CFBDB1D0232B for ; Wed, 30 Jul 2025 03:30:51 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Wed, 30 Jul 2025 03:30:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1753860651; x=1753947051; bh=CzB/b15ab9AoLtvh3A7Mn4GJMjFDEkUm0BFyCkFwBPY=; b= IBhTxpdFLszq4yqozANTYq4mWmvVur0K4TBmibfpw9QxCus2eCXmOiq2oFpSzJeH Bw95uYmJz8EhH6PMyZESGoHRuQWQf0MGXrQfwB2HDoKePDXvfGUdirNU2EC8c/yL RirtGNZDkt/M/5xjaAeRIHwGAT9M0EfFdO0VlqnmEtO9oInI3QKKKiUjeKi5dez4 L7lj9PlpfBdfXtNGg63a9hQpBsIcj8bdnsZjNOvRGUtiHnS0KXc00lAW8HHZEFPh ojWdNeuyqN6EjJf2lTtqkxgWLSBb6V8AeLwecjUfLc17PakSM5IGDsSWT1bajjxZ yISphHwa9gRccvGE7MsLug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1753860651; x=1753947051; bh=C zB/b15ab9AoLtvh3A7Mn4GJMjFDEkUm0BFyCkFwBPY=; b=Qh40T7jmEaNM0HQEQ oLgT/URVVH3CLA3YcN/5Q4P7/AHCWMU9nGpTRcfcT/QyaJPY6Lc7qLt3s9UmXjbm MN3o//QwtOnY9miwblxsPwuTF4ixukII4JvcAoj/O0hrdlpuJ+Hmu+qbkQVLEMn6 oWE7kbsFdENJ/AQJ3OP0xdFHY2R5QgK/eCRuyfnjnYwnKznffX5l4wNylTsQwWti KwGfLELJxVp5ygtAbHTiv6+GykFdDY5XQNI8akGso/OZ+f77CVFwvbmp9j2G2ChP uJ9R07PIJzxkM52lrJnjNgw84khhsiJ5/WiUYccGyAq7FesuBwJJDUfhOdHp7Ngh C9oBQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeljeefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepfffhvffufggjfhfkgggtgfesthhqmhdttd erjeenucfhrhhomhepfdftohifrghnucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehi mhhsohhprdhphhhpsehrfigvtgdrtghordhukheqnecuggftrfgrthhtvghrnhepueevle ffieefgefhhfeujeduteeigeetteegffegledvhffhleevvdeijedugeeunecuffhomhgr ihhnpeefvheglhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghp thhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghlsh eslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 30 Jul 2025 03:30:50 -0400 (EDT) Date: Wed, 30 Jul 2025 08:30:49 +0100 To: internals@lists.php.net Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D_Add?= =?US-ASCII?Q?_=22is=5Frepresentable=5Fas=5Ffl?= =?US-ASCII?Q?oat=28=29=22_and_=22is=5Frepresent?= =?US-ASCII?Q?able=5Fas=5Fint=28=29=22_functions?= User-Agent: K-9 Mail for Android In-Reply-To: References: <639dcf61-1b15-4381-aaff-54f0bd6bc23a@rwec.co.uk> Message-ID: 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: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 30 July 2025 07:54:11 BST, Alexandre Daubois wrote: >>> The value is a float that is not NaN or infinity >> >> It feels a bit odd to have a value where is_float($v) would be true, bu= t is_representable_as_float($v) would be false=2E I'd be interested to unde= rstand the thinking behind this case=2E > >As the strings =E2=80=9CINF=E2=80=9D and =E2=80=9CNAN=E2=80=9D can't be c= ast as floats directly, I >think it's safer to return false on these extreme values=2E See >https://3v4l=2Eorg/TabMK#vnull for the cast example=2E The sentence I quoted isn't talking about string inputs, it's talking abou= t values that are already floats=2E The fact that you can't create one fro= m a string cast doesn't seem relevant, if you have in fact created one some= other way=2E https://3v4l=2Eorg/efucd Rowan Tommins [IMSoP]