#27565 [NEW]: DomXml ignoring namespace

From: Date: Thu, 11 Mar 2004 11:35:27 +0000
Subject: #27565 [NEW]: DomXml ignoring namespace
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56290@lists.php.net to get a copy of this message
From: andrew dot price at boxuk dot com Operating system: Red Hat Enterprise Linux ES rel3 PHP version: 4.3.4 PHP Bug Type: DOM XML related Bug description: DomXml ignoring namespace Description: ------------ PHP is ignoring reference to namespaces when using DOM XML functions. Reproduce code: --------------- $oXsl = domxml_open_file("test.xsl"); $ctx=xpath_new_context($oXsl); $ctx->xpath_register_ns("xsl","http://www.w3.org/1999/XSL/Transform"); $aoIncludeNodes = $oXsl->get_elements_by_tagname("xsl:include",$ctx); print_r($aoIncludeNodes); Expected result: ---------------- Should produce array of all <xsl:include> nodes in the XSL. This works OK on PHP4.3.2 on Windows. Actual result: -------------- Empty array returned but will work if following line is used instead: $aoIncludeNodes = $oXsl->get_elements_by_tagname("include",$ctx); -- Edit bug report at http://bugs.php.net/?id=27565&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27565&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27565&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27565&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27565&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27565&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27565&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27565&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27565&r=support Expected behavior: http://bugs.php.net/fix.php?id=27565&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27565&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27565&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27565&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27565&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27565&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27565&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27565&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27565&r=float

« previous php.bugs (#56290) next »