PHP Manual

PEAR Manual

Smarty Manual

PostgreSQL

MySQL Manual

Perl Manual

pear_errorstack::statichaserrors()

pear_errorstack::statichaserrors()  --  determine whether there are any errors on any error stack

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

parameter

string|false $package

package name to retrieve error information from, or false to retrieve error information from all singleton stacks

string $level

level name to check for a particular severity. use this to determine whether only a particular class of errors has occurred, such as whether any warnings have occurred (errors will be ignored)

throws

no exceptions thrown.

note

this function should be called statically.