#35389 [NEW]: COM stalled
From: bke15 at gmx dot de
Operating system: Windows 2003
PHP version: 5.1.0
PHP Bug Type: COM related
Bug description: COM stalled
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 bug report at http://bugs.php.net/?id=35389&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35389&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35389&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35389&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35389&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35389&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35389&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35389&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35389&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35389&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35389&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35389&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35389&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35389&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35389&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35389&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35389&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35389&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35389&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35389&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35389&r=mysqlcfg
Thread (8 messages)
- bke15 at gmx dot de