Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73591 invoked by uid 1010); 29 Nov 2005 16:37:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73575 invoked from network); 29 Nov 2005 16:37:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2005 16:37:30 -0000 X-Host-Fingerprint: 217.160.172.43 mail.anderiasch.de Received: from ([217.160.172.43:60152] helo=mail.anderiasch.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CD/75-14828-AC38C834 for ; Tue, 29 Nov 2005 11:37:30 -0500 Received: from [127.0.0.1] (p54974128.dip.t-dialin.net [84.151.65.40]) by mail.anderiasch.de (Postfix) with ESMTP id B152F1004BA7; Tue, 29 Nov 2005 17:37:23 +0100 (CET) Message-ID: <438C83C6.10405@anderiasch.de> Date: Tue, 29 Nov 2005 17:37:26 +0100 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gareth Ardron Cc: internals@lists.php.net References: <438C7A4C.9090503@fission.org.uk> In-Reply-To: <438C7A4C.9090503@fission.org.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] is_int/is_numeric possible bug From: ml@anderiasch.de (Florian Anderiasch) Gareth Ardron wrote: > Hi. > > Think I've just stumbled upon a possible bug with is_int. Hello Gareth, if I'm not mistaken, $_REQUEST['days'] is a string, and unless you use if (!is_int(intval($_REQUEST['days'])) || $_REQUEST['days'] < 0) { I see no problem in is_int taking a string with numerals inside as not int. Greetings, Florian