#35570 [Opn->Fbk]: segfault when re-using soap client object
| From: | tony2001@php.net | Date: | Tue, 06 Dec 2005 13:17:41 +0000 |
| Subject: | #35570 [Opn->Fbk]: segfault when re-using soap client object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89820@lists.php.net to get a copy of this message | ||
ID: 35570
Updated by: tony2001@php.net
Reported By: rick at revenew dot nl
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: Debian Sarge (Linux) amd64
PHP Version: 5.1.1
New Comment:
Please provide BOTH short but complete reproduce script and GDB
backtrace.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2005-12-06 14:10:13] rick at revenew dot nl
the latest snapshot still segfaults
------------------------------------------------------------------------
[2005-12-06 13:59:58] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-06 13:53:16] rick at revenew dot nl
Description:
------------
The first method I call on a soap client object works fine. The second
call however, produces a segfault. When I recreate the soap client
object in between the calls the script works fine. This bug also occurs
in PHP 5.0.4 and 5.0.5. But it didn't exist on my previous i386 Debian
woody server (the php code is identical).
Reproduce code:
---------------
$wq = new
SoapClient('http://soap-server-ip/WQLogin/wsdl/IWQLoginService');
$ul = $wq->GetUserList();
foreach ($ul as $array) {
if($array->UserName == $_GET['username']) {
if($array->Password == $_GET['password']) {
if(in_array('1',$array->Permissions)) {
$wq->GetUserUID($array->UserID);
The last line causes the segfault. But when I insert: $wq = new
SoapClient('http://soap-server-ip/WQLogin/wsdl/IWQLoginService');
one line before the last, it works fine.
Expected result:
----------------
no segfault ;)
Actual result:
--------------
segfault, haven't got a backtrace yet. Can create one if you require
it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35570&edit=1