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

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix GH-20009: XMLReader leak on RelaxNG schema failure
This commit is contained in:
Niels Dossche
2025-09-30 18:07:08 +02:00
2 changed files with 4 additions and 0 deletions

3
NEWS
View File

@@ -53,6 +53,9 @@ PHP NEWS
. Fixed bug GH-19801 (leaks in var_dump() and debug_zval_dump()).
(alexandre-daubois)
- XMLReader:
. Fixed bug GH-20009 (XMLReader leak on RelaxNG schema failure). (nielsdos)
- Zip:
. Fixed bug GH-19688 (Remove pattern overflow in zip addGlob()). (nielsdos)
. Fixed bug GH-19932 (Memory leak in zip setEncryptionName()/setEncryptionIndex()).

View File

@@ -542,6 +542,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;
}