sptr = xmlSchemaParse(parser);
xmlSchemaFreeParserCtxt(parser);
if (!sptr) {
- php_error_docref(NULL, E_WARNING, "Invalid Schema");
+ if (!EG(exception)) {
+ php_error_docref(NULL, E_WARNING, "Invalid Schema");
+ }
RETURN_FALSE;
}
char *buf;
int len, len_iter, output = 0;
-
len = vspprintf(&buf, 0, *msg, ap);
len_iter = len;
if (output == 1) {
if (LIBXML(error_list)) {
_php_list_set_error_structure(NULL, ZSTR_VAL(LIBXML(error_buffer).s));
- } else {
+ } else if (!EG(exception)) {
+ /* Don't throw additional notices/warnings if an exception has already been thrown. */
switch (error_type) {
case PHP_LIBXML_CTX_ERROR:
php_libxml_ctx_error_level(E_WARNING, ctx, ZSTR_VAL(LIBXML(error_buffer).s));