ID: 10851
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: COM related
Operating system: Windows 2000
PHP Version: 4.0.6-dev
Description: COM component crashes when calling a property

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";
?>


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

[2001-05-14 14:13:21] [EMAIL PROTECTED]
status: feedback

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

[2001-05-14 14:02:09] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
Still crashes with new 4.0.6-dev binary from php4win

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

[2001-05-14 10:25:22] [EMAIL PROTECTED]
This should be fixed in CVS, can you please try the binary
that php4win.de provides (site is down, but there is a link to the binary).

If this one doesn't fix the problem, please reopen this report.

Derick

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

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=10851


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to