MantisBT: master 317f809f

Author Committer Branch Timestamp Parent
rombert rombert master 2010-01-05 19:27 master b50a52a4
Affected Issues  0011332: Allow tests to run on PHP 5.3
Changeset

Fixes 0011332: Allow tests to run on PHP 5.3

Since PHP 5.3 the SoapClient requires a Content-Length header to be present.

According to http://bugs.php.net/bug.php?id=49226 :

SOAP retrieves the WSDL using HTTP/1.0, which does not have chunked
transfers. Therefore, the server should provide a Content-length header.
If it does not do that, SoapServer can not load the WSDL correctly. This
is not a bug in PHP, since the content-length header is mandatory for
HTTP/1.0 messages which have a body.

This commit patches nusoap to send a Content-Length header for the WSDL file.

mod - library/nusoap/nusoap.php Diff File