Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19993 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30076 invoked by uid 1010); 15 Nov 2005 00:59:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 30061 invoked from network); 15 Nov 2005 00:59:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2005 00:59:01 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:43756] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E4/22-07637-4D239734 for ; Mon, 14 Nov 2005 19:59:01 -0500 Received: (qmail 7272 invoked from network); 15 Nov 2005 00:58:56 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 15 Nov 2005 00:58:56 -0000 Message-ID: <437932CE.80000@zend.com> Date: Tue, 15 Nov 2005 03:58:54 +0300 User-Agent: Thunderbird 1.5 (X11/20051025) MIME-Version: 1.0 To: Roman Ivanov CC: internals@lists.php.net References: <84.9C.07637.EEB48734@pb1.pair.com> <6A.CC.07637.49C48734@pb1.pair.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: results of the PHP6 wishlists From: antony@zend.com (Antony Dovgal) On 14.11.2005 12:55, Roman Ivanov wrote: > wishlist> input filter extension (including some element of user > wishlist> control) > > Will it be used _instead_ of $_POST and $_GET? An extension instead of the arrays? You must be missing something... > Honestly, I'm not so sure > it's a good idea to implement it like PECL extension does. Filtering > individual variables is, in my opinion, a wrong way to treat user input. You may filter data recursively, so filtering, for example, _POST or _GET would work fine. > Besides, is it really necessary to make input filtering a part of the > language? An extension is not a part of the language, you may or may not compile it, while the language is still there. > It's a very high-level feature, and implementation may vary > according to the needs of the developer. Plus, it's perfectly doable in > pure PHP. Yeah, that's why you can use your own callback for filtering. > In fact, I would go as far as removing session handling > functions from the "core" language too. You're late. Four or three years ago I'd agree with you, but it's too late for that. -- Wbr, Antony Dovgal