--TEST-- Bug #55639 (Digest authentication dont work) --INI-- soap.wsdl_cache_enabled=0 --EXTENSIONS-- soap --SKIPIF-- --FILE-- 'http://' . PHP_CLI_SERVER_ADDRESS, 'uri' => 'misc-uri', 'authentication' => SOAP_AUTHENTICATION_DIGEST, 'realm' => 'myrealm', 'login' => 'user', 'password' => 'pass', 'trace' => true, ]); try { $client->__soapCall("foo", []); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } $headers = $client->__getLastRequestHeaders(); var_dump($headers); ?> --EXPECTF-- Unauthorized string(%d) "POST / HTTP/1.1 Host: %s Connection: Keep-Alive User-Agent: %s Content-Type: text/xml; charset=utf-8 SOAPAction: "misc-uri#foo" Content-Length: %d Authorization: Digest username="user", realm="realm", nonce="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", uri="/", qop=auth, nc=00000001, cnonce="%s", response="%s", opaque="bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" "