Description
Static version of
PEAR_ErrorStack::hasErrors().
Returns TRUE if any singleton stack has any errors pending.
Since PEAR 1.3.2, If $package
is specified, it will call PEAR_ErrorStack::hasErrors
for the singleton error stack of that package.
If level is specified, hasErrors will ignore
any errors not conforming to the error level specified.
Use this to simulate error_reporting(E_NOTICE), for example