|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35582 Socket Timeout on SOAP request causes program termination
Submitted: 2005-12-07 14:26 UTC Modified: 2006-02-17 12:15 UTC
From: s dot strampelli at isinet dot it Assigned: dmitry (profile)
Status: Closed Package: SOAP related
PHP Version: 5.1.1 OS: Windows
Private report: No CVE-ID: None
 [2005-12-07 14:26 UTC] s dot strampelli at isinet dot it
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) {
    stream = NULL;

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-07 14:37 UTC]
Assigned to the maintainer.
 [2005-12-07 15:01 UTC]
The same as #33394.
 [2006-02-16 18:23 UTC]
Some news about this??
 [2006-02-17 12:15 UTC] s dot strampelli at isinet dot it
Ok in php 5.1.2
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 21:01:31 2024 UTC