From: aforeest at corp dot home dot nl
Operating system: Debian/Linux
PHP version: 4.3.3
PHP Bug Type: XSLT related
Bug description: bad parameter in callback to xslt scheme handler

I am performing an XSLT transformation using a stylesheet that does an
xsl:import from an external URL. To handle the HTTP scheme I install a
get_all scheme handler with the intent to retrieve the doent from

With the upgrade to Sablotron 1.0 (previously 0.97, which works fine) the
handler gets called with an incorrect 'rest' parameter. It contains only
the path of the URL, not the domain name.

Reproduce code:
function get_all_handler($processor, $scheme, $rest) {
print "$scheme:$rest\n";

$xsltProcessor = xslt_create();
xslt_set_scheme_handlers($xsltProcessor, array('get_all' =>

$args = array(
'/_xml' => '<rootNode/>',
'/_xsl' => '<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
<xsl:import href=""/>

xslt_process($xsltProcessor, 'arg:/_xml', 'arg:/_xsl', NULL, $args);

Expected result:

Actual result:

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]