Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28002 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48001 invoked by uid 1010); 11 Feb 2007 10:39:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47986 invoked from network); 11 Feb 2007 10:39:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2007 10:39:00 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.229 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 64.233.162.229 nz-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.162.229] ([64.233.162.229:38754] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/C3-22659-342FEC54 for ; Sun, 11 Feb 2007 05:39:00 -0500 Received: by nz-out-0506.google.com with SMTP id k1so1400833nzf for ; Sun, 11 Feb 2007 02:38:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lMszHnUVib7QqR1ZQuLu1cxki3fBXMMy5ROevdWi9m8L39/Y3g/Cio8uabvoHCX4H/Iphq3sunKxoHsbvrLFPQQWLVbVN8qy4KbTXmnUgn0wf2cLoFwl3jsVNjCpc3Gp7PuxFkV+n76B8UbR6KZVUMJoeKXrWYVkTs7nobBj5dA= Received: by 10.65.213.4 with SMTP id p4mr18747771qbq.1171190337483; Sun, 11 Feb 2007 02:38:57 -0800 (PST) Received: by 10.65.241.7 with HTTP; Sun, 11 Feb 2007 02:38:56 -0800 (PST) Message-ID: Date: Sun, 11 Feb 2007 11:38:56 +0100 To: "Andy Mason" Cc: internals@lists.php.net In-Reply-To: <99cd336d0702102348o10288e12k2d4e795e0f515819@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <99cd336d0702102348o10288e12k2d4e795e0f515819@mail.gmail.com> Subject: Re: [PHP-DEV] filter_var options effect \0 even if it FILTER_FLAG_STRIP_LOW not used? From: pierre.php@gmail.com (Pierre) Hi, On 2/11/07, Andy Mason wrote: > Is the filter_var function automagically removing the \0 ? Not magically, it is normal and expected. You can keep these kind of values using one of the encode flags, like: $a= filter_var("abc\0\r\n", FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW)); --Pierre