Annotation of embedaddon/php/ext/xsl/tests/bug53965.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #53965 (<xsl:include> cannot find files with relative paths when loaded with "file://")
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('xsl')) die("skip Extension XSL is required\n");
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9:
! 10: $base = 'file://' . dirname(__FILE__) . DIRECTORY_SEPARATOR . '53965';
! 11:
! 12: $xml = new DOMDocument();
! 13: $xml->load($base . DIRECTORY_SEPARATOR . 'collection.xml');
! 14:
! 15: $xsl = new DOMDocument();
! 16: $xsl->load($base . DIRECTORY_SEPARATOR . 'collection.xsl');
! 17:
! 18: $proc = new XSLTProcessor;
! 19: $proc->importStyleSheet($xsl);
! 20:
! 21: echo $proc->transformToXML($xml);
! 22: ?>
! 23: --EXPECTF--
! 24: Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection!
! 25:
! 26: <h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr>
! 27: <h1>Electric Ladyland</h1><h2>by Jimi Hendrix - 1997</h2><hr>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>