From 8ae8bf23969df577d79706f35fc90442e135c0b2 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Thu, 23 Apr 2026 19:06:45 +0100 Subject: [PATCH 1/2] Remove confusing run numbers --- configure.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/configure.php b/configure.php index c32723fa58..0f0a6ac0aa 100755 --- a/configure.php +++ b/configure.php @@ -679,9 +679,8 @@ function dom_saveload( DOMDocument $dom , string $filename = "" ) : string if ( dom_load( $dom , "{$ac['srcdir']}/{$ac["INPUT_FILENAME"]}" ) ) { - echo "1 "; dom_saveload( $dom ); // correct file/line/column on error messages - echo "2 done.\n"; + echo " done.\n"; } else { @@ -727,7 +726,6 @@ function xinclude_run_byid( DOMDocument $dom ) $maxrun = 10; //LIBXML_VERSION >= 21100 ? 1 : 10; for( $run = 0 ; $run < $maxrun ; $run++ ) { - echo "$run "; $xpath = new DOMXPath( $dom ); $xpath->registerNamespace( "xi" , "http://www.w3.org/2001/XInclude" ); $xincludes = $xpath->query( "//xi:include" ); @@ -779,7 +777,6 @@ function xinclude_run_xpointer( DOMDocument $dom ) : int $total = 0; for( $run = 0 ; $run < 10 ; $run++ ) { - echo "$run "; libxml_clear_errors(); $was = count( xinclude_residual_list( $dom ) ); From f60ec132176680c61af418dd70b33664c93d3606 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Thu, 23 Apr 2026 21:07:54 +0100 Subject: [PATCH 2/2] Add comment --- configure.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.php b/configure.php index 0f0a6ac0aa..c98379427f 100755 --- a/configure.php +++ b/configure.php @@ -722,6 +722,8 @@ function individual_xml_broken_check() function xinclude_run_byid( DOMDocument $dom ) { + // libxml does not implements the XInclude 1.1 spec, + // so we need to simulate its *recursive* nature here. $total = 0; $maxrun = 10; //LIBXML_VERSION >= 21100 ? 1 : 10; for( $run = 0 ; $run < $maxrun ; $run++ )