Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128231 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 F1BF91A00BC for ; Fri, 25 Jul 2025 21:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1753477668; bh=C00AFe5pJWPPaaWSIzzVo/ZFUfK9BM0kbyN4luKIG6E=; h=Date:From:To:Subject:In-Reply-To:References:From; b=LXrt5BxS5gg2xGJ2yf64vecZwjtHZ9qWTo96ai22D9jeZZ6nTpqr/9KULxUw6Lx9p 5RLcFs80UtXBW1I/tnKCRJsD+QU7Qibd2JAIq5nF/9kz0TQgIc9q+ejsPNQsgeGBu2 u1Xu/gl7UQLQoleSA+hdnGKWty1vIy/7PogDnJiq76/ctoHXN8JoauOed/PrNjf98G h3oUFCdKkHo+Eml/O4PnEpLniafpbwt7PRuUXf722mCPEeak8XX9RVVBVrFo0FHoDE IC0lNyP6NUB4P1OVeA69Y3/y4vJ11Gx+GfbKlQdel/y1Od1nu+kZ+4rIY8/4jDBDcu VKBIcOLQ15buQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7C9C9180079 for ; Fri, 25 Jul 2025 21:07:47 +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=-1.4 required=5.0 tests=BAYES_05,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-a6-smtp.messagingengine.com (fout-a6-smtp.messagingengine.com [103.168.172.149]) (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 ; Fri, 25 Jul 2025 21:07:47 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 777E8EC02E5 for ; Fri, 25 Jul 2025 17:09:30 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 25 Jul 2025 17:09:30 -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=fm2; t=1753477770; x=1753564170; bh=C00AFe5pJWPPaaWSIzzVo/ZFUfK9BM0kbyN4luKIG6E=; b= M6sLhdtmNn1ME2q8ZIsGnIqQkPCsE0K8n4lp3qvqOUStIo2c60os6WbYEJdLSyfo JKJWZH6/KArGgd74/eMD6RhbIaPff+AbXa5tkpoSnqR4vUmLsBLKqQH6HLVgFHr2 7LNZG16QF/ILqLYu4SHZOchd8MiX/NqUpsm9nrnIyutw2//1TUA01KUBXaO0O4vO T8ntHzq00DsOu8aVzBhT6a9eqPKyqDdYkauJn+tweQ97SYKZeVHsJkR8En8egNmm J/btX4G2fGqYDKMElYzkD0fyGsKz8V4S/NnCkk7LYIJUpbLPXY0kyJzrzTz7ghGR gHhY8gXqoAfk3+GvjNeRVQ== 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=fm2; t=1753477770; x=1753564170; bh=C 00AFe5pJWPPaaWSIzzVo/ZFUfK9BM0kbyN4luKIG6E=; b=BmFFM1QFaWGyMtE9N a71NGXFSg8kmbr2NZ9hXKW6gMj1t1DF9Rb8CvXrzdCYYPTWhdoiYa9rzuQHO452o XnDhco4bhUqVXoZDDYztdN/eVfgjyvAVUPjPyvWQR0LfMmly3qAEzSLoEzlBwz4D sw0LkHSXsnl9K2mFXQSmY1U/xOtHjXvPUa/zSnzSHRYniWdEX81W/ed8hbl2E6YG iX3HONFrQSRBPJkE0ySwXpAXq0X9z0nf8ye3/dQaO/JGXzuPaV2L1rbMaRMLxM9N oQCT7vbmyHLihasaWktT2r1QN3BATCMcZuKRqU48rCPmQgWK+TRtpRG+FJrTd//4 SRXRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdekgeehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvufgfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpedftfhofigrnhcu vfhomhhmihhnshculgfkoffuohfrngdfuceoihhmshhophdrphhhphesrhifvggtrdgtoh druhhkqeenucggtffrrghtthgvrhhnpeehleffteeigfevudetfedugedtudevledugeeu geelheeihfehgfdtkeevvefgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghr tghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrg hlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 25 Jul 2025 17:09:29 -0400 (EDT) Date: Fri, 25 Jul 2025 22:09:27 +0100 To: PHP internals list Subject: Re: [PHP-DEV] [DISCUSSION] Adding the "is_integer_safe()" function User-Agent: K-9 Mail for Android In-Reply-To: References: 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 25 July 2025 14:40:47 BST, Alexandre Daubois wrote: > >I would like to gather feedback on the proposal to add an >"is_integer_safe()" function to PHP=2E From=20the name, I don't understand what this function would do=2E Do I pass= in an integer, and get a boolean telling me if it's safe? Safe for what? D= o I pass in some other value and get a boolean if it's safe to convert to a= n integer? What value exactly, and safe in what way? That tells me two things:=20 1) You need to flesh out your proposal to be explicit about *what* it woul= d do, as well as why=2E 2) The function needs a better name, to avoid confusion over what "safe" m= eans=2E Regards, Rowan Tommins [IMSoP]