(PECL)
Get the number of errors and optional the error messages.
Set to TRUE the literal error message for each error is also returned.
The number of errors are returned as array.