Bug #10851 Updated: COM component crashes when calling a property

From: Date: Tue, 15 May 2001 18:42:41 +0000
Subject: Bug #10851 Updated: COM component crashes when calling a property
Groups: php.dev 
Request: Send a blank email to php-dev+get-55361@lists.php.net to get a copy of this message
ID: 10851 Updated by: phanto Reported By: samuel@liones.nl Status: Open Bug Type: COM related Operating system: PHP Version: 4.0.6-dev Assigned To: Comments: it seems that there's something wrong inside php, because the same script translated to another language works. the proplem is that the execution fails during a method call of the com component (so outside of php). maybe it assumes a preallocated memory area that i don't provide, i'll investigate this .. Previous Comments: --------------------------------------------------------------------------- [2001-05-15 03:52:36] samuel@liones.nl This is a small script that should generate a file called tbxds-data.xml . Don't mind what is in the file. It crashes at line 23: $xml = $xmlhttp->responseXML; With PHP 4.0.4pl1 it works fine, but with 4.0.5 and 4.0.6-dev it crashes. I've tested this a number of times, so it thinks the new COM component is buggy. <?php $savefile = dirname(__FILE__) . "/tbxds-data.xml"; $tbxdslocation = "http://services.eurobench.nl/tbxds/tbxds.asp"; $xmlhttp = new COM("Microsoft.XMLHTTP"); $requestdata = '<?xml version="1.0" standalone="yes"?> <TBMDataRequest version="2.0" user-name="NUTRECO"> <Quotes> <Quote ticker="NUO" exchange="AEX"/> </Quotes> <Charts type="67,68,69"> <Chart ticker="NUO" exchange="AEX"/> </Charts> </TBMDataRequest>'; $xmlhttp->open("POST", $tbxdslocation, 0); $xmlhttp->send($requestdata); $xml = $xmlhttp->responseXML; $xml->Save($savefile); print "$savefile saved, done"; ?> --------------------------------------------------------------------------- [2001-05-14 14:13:21] derick@php.net status: feedback --------------------------------------------------------------------------- [2001-05-14 14:02:09] phanto@php.net could you provide a short script without any includes that reproduces that error. i've done a few tests with XMLHTTP but i haven't got any errors with the latest cvs version. --------------------------------------------------------------------------- [2001-05-14 14:01:17] phanto@php.net could you provide a short script without any includes that reproduces that error. i've done a few tests with XMLHTTP but i haven't got any errors with the latest cvs version. --------------------------------------------------------------------------- [2001-05-14 11:41:46] samuel@liones.nl Still crashes with new 4.0.6-dev binary from php4win --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10851&edit=2

« previous php.dev (#55361) next »