diff --git a/NEWS b/NEWS index cf7bd2515e4..796258815b2 100644 --- a/NEWS +++ b/NEWS @@ -50,6 +50,9 @@ PHP NEWS . Fix 32-bit wordwrap test failures. (orlitzky) . Fixed bug GH-14774 (time_sleep_until overflow). (David Carlier) +- Tidy: + . Fix memory leak in tidy_repair_file(). (nielsdos) + - Treewide: . Fix compatibility with libxml2 2.13.2. (nielsdos) diff --git a/ext/tidy/tests/parsing_file_too_large.phpt b/ext/tidy/tests/parsing_file_too_large.phpt index 46196c0a5fd..a0118ba9ebd 100644 --- a/ext/tidy/tests/parsing_file_too_large.phpt +++ b/ext/tidy/tests/parsing_file_too_large.phpt @@ -47,6 +47,12 @@ try { } catch (\Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } + +try { + tidy_repair_file($path); +} catch (\Throwable $e) { + echo $e::class, ': ', $e->getMessage(), PHP_EOL; +} ?> --CLEAN--