#34746 [Opn->Fbk]: SOAP_PERSISTENCE_SESSION no longer works
| From: | tony2001@php.net | Date: | Wed, 05 Oct 2005 23:06:29 +0000 |
| Subject: | #34746 [Opn->Fbk]: SOAP_PERSISTENCE_SESSION no longer works | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86070@lists.php.net to get a copy of this message | ||
ID: 34746
Updated by: tony2001@php.net
Reported By: brent at jeneral dot com
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: Freebsd 5.4
PHP Version: 5.0.5
New Comment:
Just put it somewhere and paste the link here.
Previous Comments:
------------------------------------------------------------------------
[2005-10-06 01:05:30] brent at jeneral dot com
The bug web interface gives me a "Please do not SPAM our bug system"
when adding the .wsdl file contents. I sent it to your email. Please
let me know if that's a valid email.
------------------------------------------------------------------------
[2005-10-06 00:47:45] tony2001@php.net
Please provide the .wsdl file too.
------------------------------------------------------------------------
[2005-10-06 00:35:20] brent at jeneral dot com
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 this bug report at http://bugs.php.net/?id=34746&edit=1