xref: /PHP-7.4/ext/soap/tests/bugs/bug31755.phpt (revision c3cda40f)
1--TEST--
2Bug #31422 (No Error-Logging on SoapServer-Side)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7$client=new SOAPClient(null, array('location' => 'http://localhost',
8'uri' => 'myNS', 'exceptions' => false, 'trace' => true));
9
10$header = new SOAPHeader(null, 'foo', 'bar');
11
12$response= $client->__call('function', array(), null, $header);
13
14print $client->__getLastRequest();
15?>
16--EXPECTF--
17Warning: SoapHeader::SoapHeader(): Invalid namespace in %s on line %d
18<?xml version="1.0" encoding="UTF-8"?>
19<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="myNS" 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:Header/><SOAP-ENV:Body><ns1:function/></SOAP-ENV:Body></SOAP-ENV:Envelope>
20