From:             s dot slater at cabletime dot com
Operating system: Windows Vista + IIS7.0
PHP version:      5.2.5
PHP Bug Type:     SOAP related
Bug description:  Content-Length in HTTP header from PHP SOAP wrong

Description:
------------
PHP SOAP seems to return an incorrect Content-Length in the HTTP header (8
bytes too small) which causes a problem with IIS7 on Windows Vista.  

Note that the incorrect value is present but does not cause a problem with
IIS5.1 on XP or with Apache on Vista, XP or Linux.  You don't see any
symptoms unless using IIS7.

Reproduce code:
---------------
The problem seems to occur on any response I get from PHP SOAP.

Used 5.2.5 installed with Windows installer with SOAP + PDO SQLite modules
and running as CGI

Expected result:
----------------
Looking at a specific example with Wireshark on various servers, the full
body of the SOAP response consists of 578 bytes:

        SP CR LF
        569 bytes of XML
        LF SP CR LF CR LF

I would expect the HTTP header to include Content-Length: 578

Actual result:
--------------
The HTTP header contains Content-Length: 570

What I actually receive in the client is:

With IIS7: 570 bytes of body, so the last two bytes of the XML are
truncated and my Java applet client software won't parse it

With IIS5.1: 570 bytes of body followed by a second HTTP packet containing
the last 8 bytes, which works

With Apache: The whole response in one HTTP packet with no truncation,
which works

So the SOAP communication still works OK on the older IIS and Apache even
with the incorrect content length, but on each message sent by vista the
response ends with "</SOAP-ENV:Envelop" and the "e>" and terminating bytes
are missing.

-- 
Edit bug report at http://bugs.php.net/?id=43991&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43991&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43991&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43991&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43991&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43991&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43991&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43991&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43991&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43991&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43991&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43991&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43991&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43991&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43991&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43991&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43991&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43991&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43991&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43991&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43991&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43991&r=mysqlcfg

Reply via email to