mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Fix libxml test compatibility in xsl
This commit is contained in:
@@ -49,7 +49,9 @@ echo "--- Legit cases: none ---\n";
|
||||
|
||||
$proc = createProcessor(["foo:var_dump(string(@href))"]);
|
||||
try {
|
||||
$proc->transformToXml($inputdom);
|
||||
// Note: since libxml2 commit aca16fb3d45e0b2c45364ffc1cea8eb4abaca87d this only outputs 1 warning. This seems intentional.
|
||||
// Easiest workaround is silencing the warnings
|
||||
@$proc->transformToXml($inputdom);
|
||||
} catch (Error $e) {
|
||||
echo $e->getMessage(), "\n";
|
||||
}
|
||||
@@ -90,14 +92,6 @@ var_dump($proc->transformToXml($inputdom));
|
||||
?>
|
||||
--EXPECTF--
|
||||
--- Legit cases: none ---
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): xmlXPathCompOpEval: function var_dump not found in %s on line %d
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): Unregistered function in %s on line %d
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): runtime error: file %s line 6 element value-of in %s on line %d
|
||||
|
||||
Warning: XSLTProcessor::transformToXml(): XPath evaluation returned no result. in %s on line %d
|
||||
--- Legit cases: global function callable ---
|
||||
string(15) "https://php.net"
|
||||
--- Legit cases: global string callable ---
|
||||
|
||||
Reference in New Issue
Block a user