bug70875.phpt 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --TEST--
  2. SOAP Bug #70875 - Segmentation fault if wsdl has no targetNamespace attribute
  3. --EXTENSIONS--
  4. soap
  5. --INI--
  6. soap.wsdl_cache_enabled=0
  7. --FILE--
  8. <?php
  9. class bug70875 extends SOAPClient
  10. {
  11. public function __doRequest($request, $location, $action, $version, $one_way = 0): ?string
  12. {
  13. die("no SIGSEGV");
  14. }
  15. }
  16. $c = new bug70875(__DIR__.'/bug70875.wsdl', [
  17. 'trace' => 1,
  18. 'classmap' => [
  19. 'TestService' => 'TestService',
  20. 'TestServiceRQ' => 'TestServiceRQ',
  21. 'RqHeader' => 'RqHeader',
  22. ],
  23. ]);
  24. class TestService
  25. {
  26. public $TestServiceRQ;
  27. }
  28. class TestServiceRQ
  29. {
  30. public $RqHeader;
  31. }
  32. class RqHeader
  33. {
  34. }
  35. $r = new TestService();
  36. $r->TestServiceRQ = new TestServiceRQ();
  37. $r->TestServiceRQ->RqHeader = new RqHeader();
  38. $c->testService($r);
  39. ?>
  40. --EXPECT--
  41. no SIGSEGV