#35582 [NEW]: Socket Timeout on SOAP request causes program termination

From: Date: Wed, 07 Dec 2005 13:26:45 +0000
Subject: #35582 [NEW]: Socket Timeout on SOAP request causes program termination
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89890@lists.php.net to get a copy of this message
From: s dot strampelli at isinet dot it Operating system: Windows PHP version: 5.1.1 PHP Bug Type: SOAP related Bug description: Socket Timeout on SOAP request causes program termination 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 bug report at http://bugs.php.net/?id=35582&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35582&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35582&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35582&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35582&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35582&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35582&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35582&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35582&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35582&r=support Expected behavior: http://bugs.php.net/fix.php?id=35582&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35582&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35582&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35582&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35582&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35582&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35582&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35582&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35582&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35582&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35582&r=mysqlcfg

« previous php.bugs (#89890) next »