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