ID: 34746
User updated by: brent at jeneral dot com
Reported By: brent at jeneral dot com
-Status: Feedback
+Status: Open
Bug Type: SOAP related
Operating System: Freebsd 5.4
PHP Version: 5.0.5
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-10-06 00:47:45] [EMAIL PROTECTED]
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