Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23139 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74424 invoked by uid 1010); 4 May 2006 00:08:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74408 invoked from network); 4 May 2006 00:08:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2006 00:08:21 -0000 X-PHP-List-Original-Sender: dante@vocalspace.com X-Host-Fingerprint: 69.56.193.72 fox02.stravio.com Linux 2.5 (sometimes 2.4) (4) Received: from ([69.56.193.72:49155] helo=fox02.stravio.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 31/28-63443-4F549544 for ; Wed, 03 May 2006 20:08:21 -0400 Received: from [127.0.0.1] (unknown [66.243.31.162]) by fox02.stravio.com (Postfix) with ESMTP id 5608626C2EF; Wed, 3 May 2006 19:08:18 -0500 (CDT) Message-ID: <445945EE.30500@vocalspace.com> Date: Wed, 03 May 2006 19:08:14 -0500 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Rick Widmer Cc: PHPdev References: <44584619.60400@lorenso.com> <200605030815.34801.johannes@php.net> <44585828.1030603@vocalspace.com> <44585E89.6000400@vocalspace.com> <44586BDF.6040600@developersdesk.com> <4459410D.9090802@vocalspace.com> <445942E9.201@developersdesk.com> In-Reply-To: <445942E9.201@developersdesk.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Seeking 'coalesce' php internal function From: dante@vocalspace.com ("D. Dante Lorenso") Rick Widmer wrote: > D. Dante Lorenso wrote: >> No, that doesn't address the problem. See this: > print @ifsetor($x, $y, $z, "dante")."\n"; Usage of the shutup operator, @, in this context is a shameful coding habit and hides too much: print @ifsetor($x, fakefunction($y), $z, "dante")."\n"; Does not show any warnings or errors, but REALLY hides this: PHP Notice: Undefined variable: x in .../ifsetor.php on line 13 PHP Fatal error: Call to undefined function fakefunction() in .../ifsetor.php on line 13 Ignoring the notice on $x is fine, but that fatal error shouldn't be ignored. Dante