/
proc
/
2156873
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
soap
/
tests
/
bugs
/
File Upload :
llllll
Current File: //proc/2156873/root/usr/local/lsws/phpbuild/php-8.0.7/ext/soap/tests/bugs/bug31755.phpt
--TEST-- Bug #31422 (No Error-Logging on SoapServer-Side) --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php $client=new SOAPClient(null, array('location' => 'http://localhost', 'uri' => 'myNS', 'exceptions' => false, 'trace' => true)); try { new SOAPHeader('', 'foo', 'bar'); } catch (ValueError $exception) { echo $exception->getMessage() . "\n"; } $header = new SOAPHeader('namespace', 'foo', 'bar'); $response= $client->__soapCall('function', array(), null, $header); print $client->__getLastRequest(); ?> --EXPECT-- SoapHeader::__construct(): Argument #1 ($namespace) cannot be empty <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="myNS" xmlns:ns2="namespace" 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><ns2:foo>bar</ns2:foo></SOAP-ENV:Header><SOAP-ENV:Body><ns1:function/></SOAP-ENV:Body></SOAP-ENV:Envelope>
Copyright ©2k19 -
Hexid
|
Tex7ure