#34746 [NEW]: SOAP_PERSISTENCE_SESSION no longer works

From: Date: Wed, 05 Oct 2005 22:35:20 +0000
Subject: #34746 [NEW]: SOAP_PERSISTENCE_SESSION no longer works
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86066@lists.php.net to get a copy of this message
From: brent at jeneral dot com Operating system: Freebsd 5.4 PHP version: 5.0.5 PHP Bug Type: SOAP related Bug description: SOAP_PERSISTENCE_SESSION no longer works Description: ------------ Soap persistent sessions (SOAP_PERSISTENCE_SESSION) no longer works in version 5.05 (php5-soap-5.0.5). Downgrading to previous 5.0.4_2 works. I created a test script that also verified the bug below: Reproduce code: --------------- Server Code: $soap = new SoapServer("sessionTestServer.wsdl"); $soap->setClass("sessionTestServer"); $soap->setPersistence(SOAP_PERSISTENCE_SESSION); $soap->handle(); Class: class sessionTestServer { private $count = 0; public function count() { $this->count++; return $this->count; } } Client: echo "<br>Count: ".$client->count(); // Should be 1 echo "<br>Count: ".$client->count(); // Should be 2 echo "<br>Count: ".$client->count(); // Should be 3 Expected result: ---------------- Should be 1, 2, 3 but is 1, 1, 1. Session variables are not persistent. Actual result: -------------- Should be 1, 2, 3 but is 1, 1, 1. Session variables are not persistent. -- Edit bug report at http://bugs.php.net/?id=34746&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34746&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34746&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34746&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34746&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34746&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34746&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34746&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34746&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34746&r=support Expected behavior: http://bugs.php.net/fix.php?id=34746&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34746&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34746&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34746&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34746&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34746&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34746&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34746&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34746&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34746&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34746&r=mysqlcfg

« previous php.bugs (#86066) next »