ID: 10851
Updated by: phanto
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [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

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

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


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