bug69668.phpt 897 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #69668 (SOAP: special XML characters in namespace URIs not encoded)
  3. --EXTENSIONS--
  4. soap
  5. --FILE--
  6. <?php
  7. class MySoapClient extends SoapClient {
  8. public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string {
  9. echo $request, PHP_EOL;
  10. return '';
  11. }
  12. }
  13. $client = new MySoapClient(__DIR__ . '/bug69668.wsdl', [
  14. 'trace' => true,
  15. 'exceptions' => true,
  16. 'cache_wsdl' => WSDL_CACHE_NONE,
  17. ]);
  18. $client->test();
  19. ?>
  20. --EXPECT--
  21. <?xml version="1.0" encoding="UTF-8"?>
  22. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost/69668.php?a=a&amp;b=b" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test/></SOAP-ENV:Body></SOAP-ENV:Envelope>