Re: [SOAP] PECL::SOAP bug
| From: | Alan Knowles | Date: | Thu, 21 Aug 2003 14:30:07 +0000 |
| Subject: | Re: [SOAP] PECL::SOAP bug | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-976@lists.php.net to get a copy of this message | ||
Can you file it as a bug - bugs.php.net - there is a category PECL.
Regards
Alan
Novický Marek wrote:
Hi, I have found a problem in PECL::SOAP extension in the HTTP layer. There is a bug in php_http.c in a piece of code which handles chunked data as a response from soap server. This bug leads to infinite loop when decoding chunked response. I enclose a patch which fixes the problem. Can someone check it and commit to CVS ? Thanks Marek --- php_http.c.orig 2003-08-21 13:21:11.000000000 +0200 +++ php_http.c 2003-08-21 13:21:11.000000000 +0200 @@ -385,10 +385,10 @@ http_buf = erealloc(http_buf, http_buf_size + buf_size + 1); len_size = 0; - while (http_buf_size < buf_size) { + while (len_size < buf_size) { len_size += php_stream_read(stream, http_buf + http_buf_size, buf_size - len_size); - http_buf_size += len_size; } + http_buf_size += len_size; /* Eat up '\r' '\n' */ php_stream_getc(stream);php_stream_getc(stream);-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com