File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ echo "--- Legit cases: none ---\n";
4949
5050$ proc = createProcessor (["foo:var_dump(string(@href)) " ]);
5151try {
52- $ proc ->transformToXml ($ inputdom );
52+ // Note: since libxml2 commit aca16fb3d45e0b2c45364ffc1cea8eb4abaca87d this only outputs 1 warning. This seems intentional.
53+ // Easiest workaround is silencing the warnings
54+ @$ proc ->transformToXml ($ inputdom );
5355} catch (Error $ e ) {
5456 echo $ e ->getMessage (), "\n" ;
5557}
@@ -90,14 +92,6 @@ var_dump($proc->transformToXml($inputdom));
9092?>
9193--EXPECTF--
9294--- Legit cases: none ---
93-
94- Warning: XSLTProcessor::transformToXml(): xmlXPathCompOpEval: function var_dump not found in %s on line %d
95-
96- Warning: XSLTProcessor::transformToXml(): Unregistered function in %s on line %d
97-
98- Warning: XSLTProcessor::transformToXml(): runtime error: file %s line 6 element value-of in %s on line %d
99-
100- Warning: XSLTProcessor::transformToXml(): XPath evaluation returned no result. in %s on line %d
10195--- Legit cases: global function callable ---
10296string(15) "https://php.net"
10397--- Legit cases: global string callable ---
You can’t perform that action at this time.
0 commit comments