#45666 [NEW]: getElementsByTagName returns NULL

From: Date: Thu, 31 Jul 2008 14:25:03 +0000
Subject: #45666 [NEW]: getElementsByTagName returns NULL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127436@lists.php.net to get a copy of this message
From: matthias dot sojka at gmail dot com Operating system: Linux Slackware 12 PHP version: 5.2.6 PHP Bug Type: DOM XML related Bug description: getElementsByTagName returns NULL Description: ------------ I don't understand why, but on PHP 5.2.6 oDom->getElementsByTagName() delivers NULL. I didn't have that problem with 5.2.5. Our framework is working fine on our PHP 5.2.5 Machines and my local MAMP. Reproduce code: --------------- if (($sFirstChar !== 'i') && ($sFirstChar !== 'b') && ($sFirstChar !== 'f')) { $oChild = $this->_oDom->createElement($this->_prepareKeyName(true, $sName)); @ $oChild->appendChild($this->_oDom->createCDATASection($mValue)); @ $this->_oDom->documentElement->replaceChild($oChild, $oElement); } Expected result: ---------------- An instance of DOM-Document should be returned. Actual result: -------------- NULL returned. -- Edit bug report at http://bugs.php.net/?id=45666&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45666&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45666&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45666&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45666&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45666&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45666&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45666&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45666&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45666&r=support Expected behavior: http://bugs.php.net/fix.php?id=45666&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45666&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45666&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45666&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45666&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45666&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45666&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45666&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45666&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45666&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45666&r=mysqlcfg

« previous php.bugs (#127436) next »