|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22295 Again MS XML DOM Error
Submitted: 2003-02-19 04:56 UTC Modified: 2003-02-20 05:34 UTC
From: vodmal at newmail dot ru Assigned:
Status: Closed Package: COM related
PHP Version: 4CVS-2003-02-19 (stable) OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vodmal at newmail dot ru
New email:
PHP Version: OS:


 [2003-02-19 04:56 UTC] vodmal at newmail dot ru
I'am locate error! :-)

Look this source code:
function a()
		$xml = new COM("Msxml2.DOMDocument.4.0") or die("Can't instance Microsoft.XMLDOM");
		$xml->async = false;

		$isXmlLoaded = $xml->load("D:\\Inetpub\\wwwroot 333\\mail\\test.xml");

		if (!$isXmlLoaded) {
			die("Can't load XML");

		$items = $xml->selectNodes('//item');

		//echo $items->length;\/
		for ($i=0;$i<$items->length;$i++)

			$item = &$items->item($i);

			echo "Ok!";flush();
			echo "OK?";flush();
			echo "<BR>";


function getAttribute(&$node,$name)
	$attrib = $node->attributes->getNamedItem($name);
	$value = $attrib->nodeValue;
	return $value;


<?xml version="1.0"?>

	<item att="test"/>

Error appear when i'am try to get attribute by name for no existence attribute.

I hope, that my bug-example help you locate bug.

And one question: how i can query interface IXMLDOMElement in PHP for IXMLDOMNode element?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-20 05:34 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 17:03:58 2022 UTC