Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20854 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24173 invoked by uid 1010); 29 Nov 2005 17:52:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24158 invoked from network); 29 Nov 2005 17:52:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2005 17:52:05 -0000 X-Host-Fingerprint: 81.169.145.166 natnoddy.rzone.de Solaris 8 (1) Received: from ([81.169.145.166:51792] helo=natnoddy.rzone.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A8/AC-14828-4459C834 for ; Tue, 29 Nov 2005 12:52:04 -0500 Received: from [192.168.1.77] (p50875419.dip.t-dialin.net [80.135.84.25]) by post.webmailer.de (8.13.1/8.13.1) with ESMTP id jATHpkqm004135; Tue, 29 Nov 2005 18:51:49 +0100 (MET) Message-ID: <438C9531.3050707@hardened-php.net> Date: Tue, 29 Nov 2005 18:51:45 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gareth Ardron CC: Matteo Beccati , internals@lists.php.net References: <438C7A4C.9090503@fission.org.uk> <8E.A3.14828.D718C834@pb1.pair.com> <438C8E07.7050206@fission.org.uk> <438C91AC.5050305@beccati.com> <438C92F2.4010802@fission.org.uk> In-Reply-To: <438C92F2.4010802@fission.org.uk> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: is_int/is_numeric possible bug From: sesser@hardened-php.net (Stefan Esser) Please move the discussion to php general mailinglist. This is a usererror, a misunderstanding of is_int vs. is_numeric. The documentation clearly states, that is_numeric - Finds whether a variable is a number or a numeric string is_int - Find whether a variable is an integer anything within $_REQUEST is a string. Documentation clearly says that is_int will return false, because a string is not an integer. is_numeric will return true, because it is a numeric string. Stefan -- -------------------------------------------------------------------------- Stefan Esser sesser@php.net Hardened-PHP Project http://www.hardened-php.net/ GPG-Key gpg --keyserver pgp.mit.edu --recv-key 0x15ABDA78 Key fingerprint 7806 58C8 CFA8 CE4A 1C2C 57DD 4AE1 795E 15AB DA78 --------------------------------------------------------------------------