Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20001 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23956 invoked by uid 1010); 15 Nov 2005 15:05:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23941 invoked from network); 15 Nov 2005 15:05:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2005 15:05:59 -0000 X-Host-Fingerprint: 212.183.47.187 M2526P027.adsl.highway.telekom.at Received: from ([212.183.47.187:1356] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 85/21-07637-059F9734 for ; Tue, 15 Nov 2005 10:05:52 -0500 Message-ID: <85.21.07637.059F9734@pb1.pair.com> To: internals@lists.php.net Date: Tue, 15 Nov 2005 16:05:46 +0100 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en, en-GB, en-US MIME-Version: 1.0 References: <84.9C.07637.EEB48734@pb1.pair.com> <6A.CC.07637.49C48734@pb1.pair.com> <437932CE.80000@zend.com> <4B.67.07637.41949734@pb1.pair.com> <4379AE54.1080808@zend.com> <8F.F8.07637.B9FD9734@pb1.pair.com> <4379E396.9070003@zend.com> In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Posted-By: 212.183.47.187 Subject: Re: [PHP-DEV] Re: results of the PHP6 wishlists From: mike@php.net (Michael Wallner) Hi Roman Ivanov, you wrote: > Sorry, do not have time to simplify. This is how I do it: > > function filterRequest($prototype, $action){ > loadPrototype($prototype); > $vars = get_class_vars($prototype); > if ($vars['vigilant'] == FALSE) { > return $_REQUEST; > } > > $filter = getFilter($prototype, $action); > if ($filter == NULL) { > return NULL; > } > if ($filter == TRUE) { > return $_REQUEST; > } If this is the code you're using, it's useless. Anything after those two statements is "unreachable code", i.e. you do no filtering at all. Regards, -- Michael - http://dev.iworks.at/ext-http/http-functions.html.gz