Fix test output

This commit is contained in:
Melvyn Sopacua 2002-11-01 13:43:40 +00:00
parent ad414f28a9
commit b3b01c253d

View file

@ -30,9 +30,13 @@ $xslstring='<?xml version="1.0" encoding="ISO-8859-1"?>
</xsl:template> </xsl:template>
</xsl:stylesheet>'; </xsl:stylesheet>';
xslt_set_scheme_handlers($xh, array('get_all' => 'handle_files_all')); xslt_set_scheme_handlers($xh, array('get_all' => 'handle_files_all'));
$result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, array('/_xml' => $xmlstring, '/_xsl' => $xslstring)); /* This is intended to be silent!
echo $result; * The result is known to be invalid, but if it doesn't core dump, the test
* has succeeded. */
$result = @xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, array('/_xml' => $xmlstring, '/_xsl' => $xslstring));
echo "OK";
xslt_free($xh); xslt_free($xh);
?> ?>
--EXPECT-- --EXPECT--
simple: PHP QA OK