ID:               34746
 Updated by:       [EMAIL PROTECTED]
 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:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Can't reproduce both with 5.0.6-dev & 5.1-dev.


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

[2005-10-06 01:51:13] brent at jeneral dot com

The whole test script:
http://www.jeneral.com/sessionTest.zip

------------------------------------------------------------------------

[2005-10-06 01:06:28] [EMAIL PROTECTED]

Just put it somewhere and paste the link here.

------------------------------------------------------------------------

[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] [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

Reply via email to