Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42837 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36843 invoked from network); 25 Jan 2009 22:17:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2009 22:17:17 -0000 Authentication-Results: pb1.pair.com header.from=wrowe@rowe-clan.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=wrowe@rowe-clan.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rowe-clan.net from 64.202.165.47 cause and error) X-PHP-List-Original-Sender: wrowe@rowe-clan.net X-Host-Fingerprint: 64.202.165.47 smtpauth23.prod.mesa1.secureserver.net Received: from [64.202.165.47] ([64.202.165.47:55862] helo=smtpauth23.prod.mesa1.secureserver.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/3E-55096-AE4EC794 for ; Sun, 25 Jan 2009 17:17:16 -0500 Received: (qmail 32523 invoked from network); 25 Jan 2009 22:17:11 -0000 Received: from unknown (76.252.112.72) by smtpauth23.prod.mesa1.secureserver.net (64.202.165.47) with ESMTP; 25 Jan 2009 22:17:11 -0000 Message-ID: <497CE4E6.4080208@rowe-clan.net> Date: Sun, 25 Jan 2009 16:17:10 -0600 User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Hannes Magnusson CC: Giovanni Giacobbi , internals@lists.php.net References: <20090125214352.GA3531@lowca.thgnet.it> <7f3ed2c30901251406i75307f1eh5dd6259d38ed63ce@mail.gmail.com> In-Reply-To: <7f3ed2c30901251406i75307f1eh5dd6259d38ed63ce@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Bug in HTTP stream context causes problems in SoapClient/get_sdl() From: wrowe@rowe-clan.net ("William A. Rowe, Jr.") Hannes Magnusson wrote: > On Sun, Jan 25, 2009 at 22:43, Giovanni Giacobbi wrote: >> The problem turned out to be an invalid interpretation of the HTTP/1.1 protocol with "Transfer-Encoding: chunked" by the HTTP stream context, which caused get_sdl() to parse a WSDL including the chunk tags (hex numbers). >> >> Chunked encoding is used by Apache 2.0 when "Content-Length" is unavailable, the data content being sent is large enough, and the protocol is HTTP/1.1. > > PHP streams do not support chunked encoding, and I assume SOAP doesn't > either (although it does reinvent bunch of things, I don't think > chunked encoding was added). I thought the docs were quite explicit on > the subject.. if not, please open a doc bug. Then there is a problem, HTTP/1.1 mandates support for chunked encoding. In Apache's case, the stream should be dechunked before being passed to cgi, fcgid or apache2handler. The appropriate EOF state should be signalled when the chunked stream is exhausted. So how you are seeing the chunk headers is beyond me. Perhaps this hop-by-hop header should be eaten in apache before passing headers to the application?