Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66813 invoked by uid 1010); 2 Feb 2005 00:36:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66790 invoked from network); 2 Feb 2005 00:36:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2005 00:36:32 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.4/2.6 Received: from ([80.74.107.235:54389] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id D5/2C-00705-E8020024 for ; Tue, 01 Feb 2005 19:36:32 -0500 Received: (qmail 13338 invoked from network); 2 Feb 2005 00:36:27 -0000 Received: from localhost (HELO andi-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 2 Feb 2005 00:36:27 -0000 Message-ID: <5.1.0.14.2.20050201163412.02703a40@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 01 Feb 2005 16:36:08 -0800 To: Shane Caraveo ,Rasmus Lerdorf Cc: internals@lists.php.net In-Reply-To: <420019BD.8000006@caraveo.com> References: <4200169A.6050905@lerdorf.com> <5.1.0.14.2.20050201142816.026d21c0@localhost> <5.1.0.14.2.20050201111730.0299da70@localhost> <5.1.0.14.2.20050201111730.0299da70@localhost> <5.1.0.14.2.20050201142816.026d21c0@localhost> <5.1.0.14.2.20050201151955.02730ec0@localhost> <4200169A.6050905@lerdorf.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] PHP 5.1 From: andi@zend.com (Andi Gutmans) The only problem is that this is an extension so it would probably have a few functions: filter_input() filter_validate() filter_foobar() Maybe we were only discussing one method but it's likely for others to follow. I thinks safe_* is a bit general but then again, although naming is the hardest part of computer science, what the extension does is the most important part :) Andi At 04:07 PM 2/1/2005 -0800, Shane Caraveo wrote: >Rasmus Lerdorf wrote: > >>Andi Gutmans wrote: >> >>>I definitely like the idea and thing it's important. >>>I think as far as the filter functions are concerned this is a good way >>>to go (although I'd change the function name but that's no biggy, >>>filter_input?). I very much see how filter_input(POST, "email", >>>FILTER_EMAIL) is easier as opposed to finding the right regex for emails >>>and it's great re-use. >> >> >>Yeah, I really don't care what the name of the function is. Wanted to >>try to keep it somewhat short since it might need to be typed a lot. > >I thought my suggestion the other week was pretty good....safe_filter :-) > >Shane