mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fix test output
This commit is contained in:
parent
ad414f28a9
commit
b3b01c253d
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue