php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: s dot strampelli at isinet dot it
New email:
PHP Version: OS:

 

 [2005-12-07 14:26 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-07 14:37 UTC] tony2001@php.net
Assigned to the maintainer.
 [2005-12-07 15:01 UTC] dmitry@php.net
The same as #33394.
 [2006-02-16 18:23 UTC] jtacon@php.net
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: Sun Dec 22 03:01:28 2024 UTC