1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.5'

* PHP-8.5:
  Fix GH-20009: XMLReader leak on RelaxNG schema failure
This commit is contained in:
Niels Dossche
2025-09-30 18:07:24 +02:00

View File

@@ -557,6 +557,7 @@ static void php_xmlreader_set_relaxng_schema(INTERNAL_FUNCTION_PARAMETERS, int t
RETURN_TRUE;
} else {
xmlRelaxNGFree(schema);
php_error_docref(NULL, E_WARNING, "Schema contains errors");
RETURN_FALSE;
}