Hi Andrey, you are right, the code is wrong, and while the missing whitespace is unusual, it's conforming to the specification.
Are you able to retry with following patch? https://github.com/oerdnj/php-src/commit/82c0156cacacd32764be2e7cb6825f92ba88c787 # Install php5-dev and libxml-dev as root: apt-get install php5-dev libxml-dev # clone the git repo with the patch git clone g...@github.com:oerdnj/php-src.git -b SOAP-honor-OWS-in-HTTP-Headers # go to ext/soap cd php-src/ext/soap # compile the extension phpize ./configure # compile and install fixed extension make && make install Please report back if that helped, I will push the change to the upstream then. Cheers, Ondrej On Wed, Sep 16, 2015, at 09:55, Andrey Nikitin wrote: > Package: php5-common > Version: 5.6.13+dfsg-0+deb8u1 > Severity: normal > Tags: upstream > > Php soap http client can not receive http server responses > where the headers are not separated by spaces with their values, > for example: > > HTTP/1.1 200 OK > Content-Type:application/soap+xml; charset=utf-8 > Connection:close > Content-Length:971 > > > Error message example: > "Error Fetching http body, No Content-Length, > connection closed or chunked data" > > The source of the problem is a calls of get_http_header_value() > function in which a names of the expected headers are listed > with a space after the colon, for example: > > content-type = get_http_header_value(http_headers,"Content-Type: "); > -^- > > -- Package-specific info: > ==== Additional PHP 5 information ==== > > ++++ PHP 5 SAPI (php5query -S): ++++ > cli > apache2 > > ++++ PHP 5 Extensions (php5query -M -v): ++++ > json (Enabled for cli by maintainer script) > json (Enabled for apache2 by maintainer script) > mcrypt (Enabled for cli by maintainer script) > mcrypt (Enabled for apache2 by maintainer script) > gd (Enabled for cli by maintainer script) > gd (Enabled for apache2 by maintainer script) > pdo_pgsql (Enabled for cli by maintainer script) > pdo_pgsql (Enabled for apache2 by maintainer script) > mysqli (Enabled for cli by maintainer script) > mysqli (Enabled for apache2 by maintainer script) > mysql (Enabled for cli by maintainer script) > mysql (Enabled for apache2 by maintainer script) > intl (Enabled for cli by maintainer script) > intl (Enabled for apache2 by maintainer script) > curl (Enabled for cli by maintainer script) > curl (Enabled for apache2 by maintainer script) > pdo_mysql (Enabled for cli by maintainer script) > pdo_mysql (Enabled for apache2 by maintainer script) > memcache (Enabled for cli by local administrator) > memcache (Enabled for apache2 by local administrator) > pdo (Enabled for cli by maintainer script) > pdo (Enabled for apache2 by maintainer script) > pgsql (Enabled for cli by maintainer script) > pgsql (Enabled for apache2 by maintainer script) > opcache (Enabled for cli by maintainer script) > opcache (Enabled for apache2 by maintainer script) > > ++++ Configuration files: ++++ > **** /etc/php5/mods-available/pdo.ini **** > extension=pdo.so > > **** /etc/php5/mods-available/opcache.ini **** > zend_extension=opcache.so > > > -- System Information: > Debian Release: 8.2 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'unstable') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores) > Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages php5 depends on: > ii libapache2-mod-php5 5.6.13+dfsg-0+deb8u1 > ii php5-common 5.6.13+dfsg-0+deb8u1 > > php5 recommends no packages. > > php5 suggests no packages. > > Versions of packages php5-common depends on: > ii libc6 2.19-18+deb8u1 > ii lsof 4.86+dfsg-1 > ii psmisc 22.21-2 > ii sed 4.2.2-4+b1 > ii ucf 3.0030 > > Versions of packages php5-common suggests: > pn php5-user-cache <none> > > _______________________________________________ > pkg-php-maint mailing list > pkg-php-ma...@lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint -- Ondřej Surý <ond...@sury.org> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server