Re: Should PEAR code emit notices/warnings?

From: Date: Wed, 12 Mar 2008 00:23:52 +0000
Subject: Re: Should PEAR code emit notices/warnings?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49384@lists.php.net to get a copy of this message
Christian Schmidt wrote: > If a PEAR package calls a native PHP function that emits a > notice/warning, should that error be silenced using @function() or similar? > > Packages like Net_Socket and MDB2 silence all native errors and indicate > error conditions only using PEAR_Error. Personally I prefer this > approach, but Till thinks that people should rather turn display_errors > off or use a lower error_reporting level: > http://pear.php.net/pepr/pepr-comments-show.php?id=527 <snip> Till is incorrect, coding standards forbid PEAR packages from warnings or notices, regardless of their source. Greg

« previous php.pear.dev (#49384) next »