PEAR_PackageUpdate::hasErrors – Returns whether or not errors have occurred (and been captured).


require_once 'PEAR/PackageUpdate.php';

boolean PEAR_PackageUpdate::hasErrors ( mixed $level = false )


Returns whether or not errors , and or, warnings (version 0.7.0 or better) have occurred.


mixed $level

The level of errors to pop off of the stack (warning|error). Use FALSE if you want all errors and warnings at once.


since 0.4.0a1

This function can not be called statically.

Return value

boolean - TRUE if errors(/warnings) have been captured, FALSE othewise.

Pops an error off the error stack. (Previous) PEAR_Size (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.