#35389 [Asn->Fbk]: COM stalled

From: Date: Fri, 25 Nov 2005 12:21:33 +0000
Subject: #35389 [Asn->Fbk]: COM stalled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88943@lists.php.net to get a copy of this message
 ID:               35389
 Updated by:       tony2001@php.net
 Reported By:      bke15 at gmx dot de
-Status:           Assigned
+Status:           Feedback
 Bug Type:         COM related
 Operating System: Windows 2003
 PHP Version:      5.1.0
 Assigned To:      wez
 New Comment:

Btw, check the event viewer or whatever it's called to see if there are
any error log entries.


Previous Comments:
------------------------------------------------------------------------

[2005-11-25 13:18:35] bke15 at gmx dot de

SysInformation: I am using IIS with ISAPI Extension.
Windows is running with latest servicepack and patches.

------------------------------------------------------------------------

[2005-11-25 12:38:52] tony2001@php.net

Assigned to the maintainer.

------------------------------------------------------------------------

[2005-11-25 12:36:40] bke15 at gmx dot de

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 ...


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35389&edit=1


Thread (8 messages)

« previous php.bugs (#88943) next »