Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15061 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3218 invoked by uid 1010); 17 Feb 2005 20:08:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3104 invoked from network); 17 Feb 2005 20:08:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2005 20:08:08 -0000 X-Host-Fingerprint: 209.161.72.28 theta.altoona-pa.com Linux 2.4/2.6 Received: from ([209.161.72.28:39644] helo=theta.altoona-pa.com) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id D0/34-39535-6A9F4124 for ; Thu, 17 Feb 2005 15:08:06 -0500 Received: from JASONGARBER2 (static-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id 57D8B16978; Thu, 17 Feb 2005 15:08:03 -0500 (EST) Date: Thu, 17 Feb 2005 15:05:59 -0500 X-Mailer: The Bat! (v3.0) Professional Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <409277949.20050217150559@ionzoft.com> To: Andi Gutmans Cc: Marcus Boerger , internals@lists.php.net In-Reply-To: <5.1.0.14.2.20050217114315.02076c60@localhost> References: <59089102.20050217201853@marcus-boerger.de> <5.1.0.14.2.20050217114315.02076c60@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Before March 1st aka PHP 5.1 beta From: jason@ionzoft.com (Jason Garber) Hello Andi, >>4) php 5.1 is aiming to increase performance and security => ifsetor >> >> It is nice and easy and fast...only it's name. Well guys come on that's >> the stupiest reason to reject. The name is selfspeaking, you're all only >> not so used to its name as you are with foreach for now. AG> It wasn't only the name but also the implementation. Actually, I was hoping AG> that the input filter API would resolve this issue once and for all even if AG> in a bit of a different (and IMO better) way. Input filtering does not solve the problem ifsetor() is designed to solve. It tackles a small part of it, but ifsetor() is a general purpose construct that is used for $_GET, $_POST, as well as ANY OTHER array element or variable in your script. $x = ifsetor($somearray[$foo][$bar], 0); Is a lot cleaner than: $x = isset($somearray[$foo][$bar]) ? $somearray[$foo][$bar] : 0; -- ifsetor()'s purpose is simple and clear: To return a variable value if it exists or a default value if it does not exist WITHOUT generating any error. Thanks. -- Best regards, Jason mailto:jason@ionzoft.com