Re: [PHP-DEV] Bug in HTTP stream context causes problems in SoapClient/get_sdl()

2009-01-26 Thread Daniel T. Gorski
On 25 Jan 22:43, Giovanni Giacobbi wrote: Hi, > The problem turned out to be an invalid interpretation of the HTTP/1.1 > protocol with "Transfer-Encoding: chunked" by the HTTP stream context, FYI, a related bug report: regards dtg --

Re: [PHP-DEV] Bug in HTTP stream context causes problems in SoapClient/get_sdl()

2009-01-25 Thread William A. Rowe, Jr.
Giovanni Giacobbi wrote: > > @William: I'm not sure I understand your reply: Apache#1 (the one running my > test code) has nothing to do in all of this, because PHP is opening a raw > socket and communicating on its own with Apache#2 (the one outputting the > wsdl with chunked encoding). Thus P

Re: [PHP-DEV] Bug in HTTP stream context causes problems in SoapClient/get_sdl()

2009-01-25 Thread Giovanni Giacobbi
On Sun, Jan 25, 2009 at 11:06:51PM +0100, Hannes Magnusson wrote: > > > > $opts = array('http' => array('method' => "GET", 'header' => > > "Accept-language: en\r\nConnection: close\r\n")); > > $context = stream_context_create($opts); > > stream_context_set_option($context, "http", "protocol_vers

Re: [PHP-DEV] Bug in HTTP stream context causes problems in SoapClient/get_sdl()

2009-01-25 Thread 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 t

Re: [PHP-DEV] Bug in HTTP stream context causes problems in SoapClient/get_sdl()

2009-01-25 Thread Hannes Magnusson
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