ID: 35582
User updated by: s dot strampelli at isinet dot it
Reported By: s dot strampelli at isinet dot it
Status: Closed
Bug Type: SOAP related
Operating System: Windows
PHP Version: 5.1.1
Assigned To: dmitry
New Comment:
Ok in php 5.1.2
Previous Comments:
------------------------------------------------------------------------
[2006-02-16 18:23:08] [EMAIL PROTECTED]
Some news about this??
------------------------------------------------------------------------
[2005-12-07 15:01:01] [EMAIL PROTECTED]
The same as #33394.
------------------------------------------------------------------------
[2005-12-07 14:37:31] [EMAIL PROTECTED]
Assigned to the maintainer.
------------------------------------------------------------------------
[2005-12-07 14:26:43] s dot strampelli at isinet dot it
Description:
------------
If a soap request timeout waiting http header, the program terminate
abnormally.
I think the bug is the call of efree without checking if http_headers
is not null in ext/soap/php_http.c , function http_connect about line
182:
if (!get_http_headers(stream, &http_headers, &http_header_size
TSRMLS_CC) || http_headers == NULL) {
php_stream_close(stream);
stream = NULL;
}
efree(http_headers);
Reproduce code:
---------------
$dati = "test";
$client = new SoapClient($wsdl);
$res = $client->test($dati);
If the execution time of test method is more than
default_socket_timeout seconds, the php interpret terminate with a dr
watson stack trace.
Expected result:
----------------
A SoapException would be thrown ?
Certainly, the PHP script could be expected to continue rather than
die.
Actual result:
--------------
PHP interpret (php.exe) dies with a dr watson stack trace.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35582&edit=1