#35570 [NEW]: segfault when re-using soap client object

From: Date: Tue, 06 Dec 2005 12:53:18 +0000
Subject: #35570 [NEW]: segfault when re-using soap client object
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89817@lists.php.net to get a copy of this message
From:             rick at revenew dot nl
Operating system: Debian Sarge (Linux) amd64
PHP version:      5.1.1
PHP Bug Type:     SOAP related
Bug description:  segfault when re-using soap client object

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 bug report at http://bugs.php.net/?id=35570&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35570&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35570&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35570&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35570&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35570&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35570&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35570&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35570&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35570&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35570&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35570&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35570&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35570&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35570&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35570&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35570&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35570&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35570&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35570&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35570&r=mysqlcfg


Thread (20 messages)

« previous php.bugs (#89817) next »