Edit report at http://bugs.php.net/bug.php?id=44267&edit=1

 ID:                 44267
 Comment by:         ocyssau at free dot fr
 Reported by:        falk dot herrmann at bike24 dot net
 Summary:            soap server not persistence
 Status:             No Feedback
 Type:               Bug
 Package:            SOAP related
 Operating System:   Linux 2.6.23
 PHP Version:        5.2.5
 Block user comment: N
 Private report:     N

 New Comment:

circumvent the bug by starting the session after the class definition:



server.php

==========

<?php



require('Foo.php');



session_name('PSESSION');



if ( $_COOKIE['PSESSION'] ) {

        session_id($_COOKIE['PSESSION']);

}

class Bar extends Foo{

        public $var = 0;



        public function login() {

                return session_id();

        }



        public function incVar() {

                $this->var++;

                return $this->var;

        }

}



$res = session_start();



$server = new SoapServer(NULL, array('uri' => 'http://localhost/'));

$server->setClass('Bar');

$server->setPersistence(SOAP_PERSISTENCE_SESSION);

$server->handle();

?>


Previous Comments:
------------------------------------------------------------------------
[2010-12-08 23:11:25] ocyssau at free dot fr

It is the same on 5.3.0

------------------------------------------------------------------------
[2010-06-11 23:21:35] nn at tronix dot pl

I have exactly the same problem in PHP 5.3.2

------------------------------------------------------------------------
[2010-04-14 20:26:46] marcio at invox dot es

I have exactly the same problem in PHP 5.2.11 and 5.2.6-1+lenny3, is it
fixed?

How to solve this!??

Thanks a lot!

------------------------------------------------------------------------
[2008-10-29 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2008-10-21 11:32:10] [email protected]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/



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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=44267


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=44267&edit=1

Reply via email to