|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-07 14:37 UTC] tony2001@php.net
[2005-12-07 15:01 UTC] dmitry@php.net
[2006-02-16 18:23 UTC] jtacon@php.net
[2006-02-17 12:15 UTC] s dot strampelli at isinet dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 03:00:01 2025 UTC |
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.