|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-25 12:38 UTC] tony2001@php.net
[2005-11-25 13:18 UTC] bke15 at gmx dot de
[2005-11-25 13:21 UTC] tony2001@php.net
[2005-11-25 14:04 UTC] bke15 at gmx dot de
[2005-11-26 16:42 UTC] jbr at yaright dot com
[2005-11-27 13:32 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
Description: ------------ Hi I am using COM since 5.0.5 without problems. Since 5.1RC6 and now 5.1.0 COM does stop the complete script. I get no output anymore. see code ... Reproduce code: --------------- <?php echo "Start Test " . date("F j, Y, g:i:s a") . "<br>"; try { $dom = new COM ( "MSXML2.DOMDocument.4.0" ); $dom->setProperty("AllowDocumentFunction",true); $dom->setProperty("NewParser",true); $dom->setProperty("MaxXMLSize",0); $dom->Async = false; $dom->validateOnParse = false; $dom->resolveExternals = true; $dom->preserveWhiteSpace = false; } catch (Exception $e) { die("Error during DOM create.<br>"); } $xml = "<wood> <tree><num>1</num></tree> <tree><num>2</num></tree> <tree><num>3</num></tree> <tree><num>4</num></tree> </wood>"; echo "loading...<br>"; try { $dom->LoadXML($xml); } catch (Exception $e) { echo "ERROR: can't parse Parameter-XML<br>"; echo "ERROR: Reason " . $dom->ParseError->Reason . "<br>"; echo "ERROR: Absolute File Position " . $dom->ParseError->Filepos . "<br>"; echo "ERROR: Line number " . $dom->ParseError->Line . "<br>"; echo "ERROR: Character Position " . $dom->ParseError->linepos . "<br>"; echo "ERROR: SRC Line: " . HTMLEncode ($dom->ParseError->srcText) . "<br>"; unset($dom); die(); } echo htmlentities($dom->xml); echo "<br>finish<br>"; /* Expected Output : Start Test November 25, 2005, 12:26:26 pm loading... <wood> <tree><num>1</num></tree> <tree><num>2</num></tree> <tree><num>3</num></tree> <tree><num>4</num></tree> </wood> finish ?> Expected result: ---------------- Start Test November 25, 2005, 12:26:26 pm loading... <wood> <tree><num>1</num></tree> <tree><num>2</num></tree> <tree><num>3</num></tree> <tree><num>4</num></tree> </wood> finish Actual result: -------------- Blank Page ...