Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24234 invoked by uid 1010); 26 Jul 2006 18:29:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24219 invoked from network); 26 Jul 2006 18:29:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2006 18:29:43 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.170:35884] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 27/ED-04178-794B7C44 for ; Wed, 26 Jul 2006 14:29:43 -0400 Received: by ug-out-1314.google.com with SMTP id k3so3699160ugf for ; Wed, 26 Jul 2006 11:29:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NuYXVEwBwQ5o2rOEEkRbT6lEBlB5UITIbWXMzvPCDs8t1/OZ0c5KBJYHfYYbUkbwhG8+KZSMD/W7xBkKALH0gBlWpNSD8nT1LPCCHO4WOjvdXks921EMFPOoTaYqIJd1BM9heUK0N4qfcBsXXmATFHJ1MrTXVyb/qdWPer3bD7g= Received: by 10.66.224.19 with SMTP id w19mr6310419ugg; Wed, 26 Jul 2006 11:29:40 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Wed, 26 Jul 2006 11:29:40 -0700 (PDT) Message-ID: Date: Wed, 26 Jul 2006 20:29:40 +0200 To: "Kevin Waterson" Cc: internals@lists.php.net In-Reply-To: <20060727040123.12c68296.kevin@oceania.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060727040123.12c68296.kevin@oceania.net> Subject: Re: [PHP-DEV] testing filter ext in RC1 From: pierre.php@gmail.com (Pierre) Hi, On 7/26/06, Kevin Waterson wrote: > $var=1234; > echo filter_data($var, FILTER_VALIDATE_INT); > ?> > > should the return values be either NULL or 1234? > well, it should return 1234 It does. > if var was abc1234 then it would return NULL, is that correct? False if the value is not valid, null if the value does not exist (for example with input_get or input_get_args). In the case of filter_data, as you pass the variable, it will be either false or the correct value. Cheers, --Pierre