PEAR_ErrorStack::staticHasОшибки

PEAR_ErrorStack::staticHasОшибки() – Determine whether there are any errors on any error stack

Synopsis

require_once 'PEAR/ErrorStack.php';

boolean PEAR_ErrorStack::staticHasОшибки ( string|false $package = false , string $level = false )

Описание

Static version of PEAR_ErrorStack::hasОшибки(). Returns TRUE if any singleton stack has any errors pending. Since PEAR 1.3.2, If $package is specified, it will call PEAR_ErrorStack::hasОшибки for the singleton error stack of that package. If level is specified, hasОшибки 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.

Замечание

This function should be called statically.

    Поддержать сайт на родительском проекте КГБ