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:
3
NEWS
3
NEWS
@@ -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()).
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user