Re: Seeking 'coalesce' php internal function

From: Date: Thu, 04 May 2006 00:08:14 +0000
Subject: Re: Seeking 'coalesce' php internal function
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-23139@lists.php.net to get a copy of this message
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

« previous php.internals (#23139) next »