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";
49
49
50
50
$ proc = createProcessor (["foo:var_dump(string(@href)) " ]);
51
51
try {
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 );
53
55
} catch (Error $ e ) {
54
56
echo $ e ->getMessage (), "\n" ;
55
57
}
@@ -90,14 +92,6 @@ var_dump($proc->transformToXml($inputdom));
90
92
?>
91
93
--EXPECTF--
92
94
--- 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
101
95
--- Legit cases: global function callable ---
102
96
string(15) "https://php.net"
103
97
--- Legit cases: global string callable ---
You can’t perform that action at this time.
0 commit comments