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

XLEAK XML_SAVE_NO_DECL test for old libxml2 versions

This commit is contained in:
Niels Dossche
2023-07-29 17:35:42 +02:00
parent ae66a0d142
commit 655f116be5

View File

@@ -2,6 +2,10 @@
DOMDocument::saveXML(): XML_SAVE_NO_DECL
--EXTENSIONS--
dom
--SKIPIF--
<?php
if (getenv('SKIP_ASAN') && LIBXML_VERSION < 20911) die('xleak leaks under libxml2 versions older than 2.9.11');
?>
--FILE--
<?php
$doc = new DOMDocument();