bug47049.phpt 1.3 KB

12345678910111213141516171819
  1. --TEST--
  2. Bug #47049 (SoapClient::__soapCall causes a segmentation fault)
  3. --EXTENSIONS--
  4. soap
  5. --INI--
  6. soap.wsdl_cache_enabled=0
  7. --FILE--
  8. <?php
  9. $client = new SoapClient(__DIR__ . '/bug47049.wsdl',
  10. array('trace' => 1 , 'exceptions' => 0));
  11. $host = array('uuid' => 'foo');
  12. $software_list = array(array('name' => 'package', 'version' => '1.2.3', 'state' => 'installed'));
  13. $updates = array();
  14. $report_id = $client->__soapCall('reportSoftwareStatus',array($host, $software_list, $updates));
  15. echo $client->__getLastRequest();
  16. ?>
  17. --EXPECT--
  18. <?xml version="1.0" encoding="UTF-8"?>
  19. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/reporter/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:reportSoftwareStatus><host xsi:type="ns1:host"><uuid xsi:type="xsd:string">foo</uuid></host><software_list xsi:type="ns1:software_list"><software xsi:type="ns1:software"><name xsi:type="xsd:string">package</name><version xsi:type="xsd:string">1.2.3</version><state xsi:type="xsd:string">installed</state></software></software_list><updates xsi:type="ns1:updates"/></ns1:reportSoftwareStatus></SOAP-ENV:Body></SOAP-ENV:Envelope>