From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 4.2.1 PHP Bug Type: COM related Bug description: PHP crashed when try to access XML DOM COM interfaces
test.xml: <?xml version="1.0"?> <test a="g" b="false"> <v val="1">aa</v> <v val="2">bb</v> <v val="3">nn</v> </test> test.php: <? $MSXML = new COM("Msxml2.DOMDocument"); if ($MSXML->load("D:\\Inetpub\\wwwroot\\vphpmail\\test.xml")) { $nodeList = $MSXML->getElementsByTagName("v"); for ($i=0;$i<$nodeList->length;$i++) { $node = $nodeList->nextNode(); $attribs = $node->attributes; $attr = $attribs->getNamedItem("val"); echo($attr->Name."<BR>"); // This is crash echo($node->nodeName." ".$node->xml."<BR>"); } } else { echo("BAD<br>"); echo( "Error in file <b>".$MSXML->parseError->url."</B> at line <b>". $MSXML->parseError->line."</b> in pos <b>".$MSXML->parseError->linepos."</b>"); } ?> -- Edit bug report at http://bugs.php.net/?id=21172&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21172&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21172&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21172&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21172&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21172&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21172&r=support Expected behavior: http://bugs.php.net/fix.php?id=21172&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21172&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21172&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21172&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21172&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21172&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21172&r=isapi