#35570 [Opn->Fbk]: segfault when re-using soap client object

From: Date: Tue, 06 Dec 2005 12:59:58 +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-89818@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 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




Previous Comments:
------------------------------------------------------------------------

[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


Thread (20 messages)

« previous php.bugs (#89818) next »