Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49237 invoked by uid 1010); 28 Jul 2006 16:43:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49220 invoked from network); 28 Jul 2006 16:43:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2006 16:43:46 -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.168 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.168:50618] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 7E/40-45010-FBE3AC44 for ; Fri, 28 Jul 2006 12:43:44 -0400 Received: by ug-out-1314.google.com with SMTP id k3so872440ugf for ; Fri, 28 Jul 2006 09:43:38 -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=c9n7hJiJmgt3BQfT8DbiczgyaHNMVX+GvACQEIqPtYY184m/1cUK7Jlps/EJKJjodASRvhn5hkK3p/YH/xOMPfYm3LFZjKLYsXloHFGetf5i6oEs3ZD3KDbQieDAKZXe7rXsXiKC2wKL0QpmWuLpHHTYEhAmm0V9nrAWA1X7yEc= Received: by 10.66.243.2 with SMTP id q2mr8843789ugh; Fri, 28 Jul 2006 09:43:38 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Fri, 28 Jul 2006 09:43:38 -0700 (PDT) Message-ID: Date: Fri, 28 Jul 2006 18:43:38 +0200 To: "Kevin Waterson" Cc: internals@lists.php.net In-Reply-To: <20060729031029.3c2f0d2b.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> <20060729031029.3c2f0d2b.kevin@oceania.net> Subject: Re: [PHP-DEV] testing filter ext in RC1 From: pierre.php@gmail.com (Pierre) On 7/28/06, Kevin Waterson wrote: > This one time, at band camp, Pierre wrote: > > > > > 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. > > here it returns '0' Please show me some code, "here" is not really helpful. For example: $ php -r '$var=1234; var_dump(filter_data($var, FILTER_VALIDATE_INT));' int(1234) $ php -r '$var=ab1234; var_dump(filter_data($var, FILTER_VALIDATE_INT));' bool(false) --Pierre