From: gpl at ircf dot fr Operating system: Linux Ubuntu 8.10 PHP version: 5.2.6 PHP Bug Type: XSLT related Bug description: xslt_base_dir parameter doesn't work
Description: ------------ Base path cannot be changed by setting the parameter xslt_base_dir in the xslt processor. This bug was also reported here : http://bugs.php.net/bug.php?id=43454&edit=3 Reproduce code: --------------- <?php // First, load a XSL stylesheet $xslDom = DomDocument::loadXML('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:include href="foo"/></xsl:stylesheet>'); // Then initialize the XSLTProcessor $xsltProcessor = new xsltprocessor(); // Set the xslt_base_dir $xsltProcessor->setParameter('','xslt_base_dir','base'); // Import the stylesheet in the processor $xsltProcessor->importStylesheet($xslDom); ?> Expected result: ---------------- This program should raise the following warning : Failed to load external entity ".../base/foo" Actual result: -------------- The program raises the warning : Failed to load external entity ".../foo" -- Edit bug report at http://bugs.php.net/?id=46729&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46729&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46729&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46729&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46729&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46729&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46729&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46729&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46729&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46729&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46729&r=support Expected behavior: http://bugs.php.net/fix.php?id=46729&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46729&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46729&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46729&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46729&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46729&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46729&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46729&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46729&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46729&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46729&r=mysqlcfg
