Bug #10851: COM component crashes when calling a property
| From: | samuel at liones dot nl | Date: | Mon, 14 May 2001 14:13:57 +0000 |
| Subject: | Bug #10851: COM component crashes when calling a property | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55167@lists.php.net to get a copy of this message | ||
From: samuel@liones.nl
Operating system: Windows 2000
PHP version: 4.0.5
PHP Bug Type: Reproducible crash
Bug description: COM component crashes when calling a property
PHP 4.0.5 CGI and ISAPI crashes when I do the following:
<?php
$savefile = dirname(__FILE__) . "/tbxds-data.xml";
$requestfile = dirname(__FILE__) . "/tbxds-request.xml";
$tbxdslocation = "http://services.eurobench.nl/tbxds/tbxds.asp";
$xmlhttp = new COM("Microsoft.XMLHTTP");
if ( $requestdata = join('',file($requestfile)) ) {
$xmlhttp->open("POST", $tbxdslocation, 0);
$xmlhttp->send($requestdata);
$reqdoc = $xmlhttp->responseXML;
// $reqdoc->save($savefile);
// proceed with further processing
include("nutreco.php");
} else {
print "Er is een fout opgetreden tijdens het lezen van het
request-bestand.<br>";
print $objdoc->parseError->reason;
}
?>
It crashes at line 12: $reqdoc = $xmlhttp->responseXML;
Is the COM component faulty?
--
Edit Bug report at: http://bugs.php.net/?id=10851&edit=1