--TEST-- Bug #31755 (Cannot create SOAP header in no namespace) --EXTENSIONS-- soap --FILE-- 'http://localhost', 'uri' => 'myNS', 'exceptions' => false )); 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 bar