php-src/ext/soap
Nikita Popov ce7935e82a Don't pass null action to __doRequest
The parameter is not nullable, so it will be interpreted as
an empty string anyway.

The entire code here is pretty confusing though, and probably
deserves a second loop. The HTTP code only send SOAPAction/action
if soapaction is non-NULL -- but it always is, because it is
accepted through a non-nullable string parameter.

Regarding the SOAPAction header, it appears that always sending
it is actually a requirement of the standard:
> An HTTP client MUST use this header field when issuing a SOAP
> HTTP Request.
Although it does make a distinction between absence of value and
an empty string:
> The header field value of empty string ("") means that the intent
> of the SOAP message is provided by the HTTP Request-URI. No value
> means that there is no indication of the intent of the message.
The empty string interpretation appears to be the desired one.

However, for the action MIME tag the SOAP 1.2 Part 2 specification
says that
> The media type specifies an optional action parameter, which can
> be used to optimize dispatch or routing, among other things.
but also
> The SOAP Action feature defines a single property, which is
> described in Table 14. The value of this property MUST be an
> absolute URI[RFC 3986] and MUST NOT be empty.
which would indicate that we should not be sending an empty
action here.

As I'm not familiar with SOAP and this is long-standing behavior,
I'm just leaving this alone for now...
2021-02-10 12:00:20 +01:00
..
tests Merge branch 'PHP-7.4' into PHP-8.0 2021-01-31 21:42:48 -08:00
config.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
php_encoding.c Add "const". Move constant strings to read-only memory. 2020-09-07 21:35:48 +03:00
php_encoding.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_http.c Merge branch 'PHP-7.4' 2020-09-17 10:31:48 +02:00
php_http.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_packet_soap.c Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_packet_soap.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_schema.c Merge branch 'PHP-7.4' 2020-09-30 08:37:43 +03:00
php_schema.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_sdl.c Merge branch 'PHP-7.4' into PHP-8.0 2021-02-02 10:07:04 +01:00
php_sdl.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
php_soap.h Fix [-Wundef] warning in SOAP extension 2020-05-20 16:29:51 +02:00
php_xml.c Merge branch 'PHP-7.4' into PHP-8.0 2021-01-31 21:42:48 -08:00
php_xml.h Remove mention of PHP major version in Copyright headers 2019-09-25 14:51:43 +02:00
soap.c Don't pass null action to __doRequest 2021-02-10 12:00:20 +01:00
soap.stub.php Accept null $location in SoapClient::__setLocation() 2021-02-10 10:50:42 +01:00
soap_arginfo.h Regenerate arginfo file 2021-02-10 11:18:06 +01:00