Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28327 invoked by uid 1010); 14 Jun 2005 06:32:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28294 invoked from network); 14 Jun 2005 06:32:58 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 14 Jun 2005 06:32:58 -0000 X-Host-Fingerprint: 66.11.173.122 unknown Received: from ([66.11.173.122:56999] helo=interjinn.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 07/3D-20931-3797EA24 for ; Tue, 14 Jun 2005 02:30:11 -0400 Received: from blobule.suds (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id 4896611FB67; Tue, 14 Jun 2005 02:30:08 -0400 (EDT) To: Ron Korving Cc: internals@lists.php.net In-Reply-To: <52.4A.20931.FBB6EA24@pb1.pair.com> References: <5.1.0.14.2.20050603203711.028e9140@localhost> <200506051859.53976.magnus@php.net> <6E.27.21296.C90E7A24@pb1.pair.com> <38.CE.21296.BFD78A24@pb1.pair.com> <43.34.20931.17BEDA24@pb1.pair.com> <1118701987.27553.6.camel@blobule.suds> <53F92510-14F5-4E4E-939F-8FC382A7B925@botimer.net> <87728790.20050613214458@ionzoft.com> <52.4A.20931.FBB6EA24@pb1.pair.com> Content-Type: text/plain Organization: InterJinn Message-ID: <1118730688.27553.19.camel@blobule.suds> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5-4mdk Date: Tue, 14 Jun 2005 02:31:28 -0400 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 5.1 From: robert@interjinn.com (Robert Cummings) On Tue, 2005-06-14 at 01:31, Ron Korving wrote: > Jason, you are absolutely right.. this is not about input filtering at all. > It's about replacing: > > $x = (isset($ANY_var) ? $ANY_var : 'Default Value'); > by > $x = ifsetor($ANY_var, 'Default Value'); > > So, Robert's solution is no real solution if you ask me. But again, it would > be best, if there was no ifsetor() at all, but that users would have the > power to create such a function themselves in the php code space. I have no > clue how though... Well my code has nothing to do with filtering. It's all about retrieving a default value if one is not set in response to the poster to which I replied. But yes, I was hasty with it in my eternal lack of wisdom, and of course forgot about scalars. For the record, I am indeed in favour of something that allows the choice of a value from a series of values for which some may not be set-- without the generation of not set warnings :) On that note, how comes there's a $GLOBAL array and not a $LOCAL array for vars declared in the immediate scope :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'