]> granicus.if.org Git - php/commitdiff
Fix test compat with libxml2 2.9.5
authorAnatol Belski <ab@php.net>
Mon, 11 Sep 2017 12:32:54 +0000 (14:32 +0200)
committerAnatol Belski <ab@php.net>
Mon, 11 Sep 2017 12:32:54 +0000 (14:32 +0200)
From 2.9.5 on libxml explcitly initializes the keepBlanks flag.

ext/dom/tests/dom005.phpt

index 715aec4024cc1ac979964289d3519f1953350d98..0aceb881bf3eef2733879ebd6fe18e91bea39dda 100644 (file)
@@ -5,7 +5,7 @@ Test 5: HTML Test
 --FILE--
 <?php
 $dom = new domdocument;
-$dom->loadHTMLFile(dirname(__FILE__)."/test.html");
+$dom->loadHTMLFile(dirname(__FILE__)."/test.html", LIBXML_NOBLANKS);
 print  "--- save as XML\n";
 
 print adjustDoctype($dom->saveXML());