msopacua Sat Oct 5 12:11:45 2002 EDT
Added files:
/php4/ext/xslt/tests 004.phpt
Log:
(xslt tests) Test for reference to a non-existing scheme handler.
Index: php4/ext/xslt/tests/004.phpt
+++ php4/ext/xslt/tests/004.phpt
--TEST--
Set a non-existing scheme handler
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
function bar()
{
return 1;
}
$xh = xslt_create();
$xmlstring = '<foo><barred /></foo>';
$xslstring = '<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/TR/1999/XSL/Transform"><xsl:for-each
select="/"><xsl:value-of select="document(\'bogus://foo\')"
/></xsl:for-each></xsl:stylesheet>';
xslt_set_scheme_handlers($xh, array('get_all' => 'foo'));
$result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, array('/_xml' =>
$xmlstring, '/_xsl' => $xslstring));
xslt_free($xh);
echo("OK");
?>
--EXPECT--
OK
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php