Description:
------------
I am seeing some weirdness after setting the SoapClient in the session and then retrieveing it in another page.
On the second page, I can retrieve the SoapClient from the session, but as soon as I access a method on the SoapClient, I get this error.
"Warning: SoapClient::__call(): supplied argument is not a valid sdl resource in welcome.php on line 18
There was a problem with your login: Error finding "uri" property"
I notice during debugging that the attributes sdl (originally :6) and httpurl (originally :8) become 0's after the redirect. Everything else (location, __default_headers0 look the same.
Reproduce code:
---------------
First php page:
session_start()
$soapclient = new SoapClient('some?WSDL');
$result = $soapclient->someOperation();
$_SESSION['client'] = $soapclient ;
Second php page:
session_start()
$client= $_SESSION['client'];
try {
$result = $soapclient->someOperation();
echo $result;
} catch (exception $e) {
echo $e;
}
Expected result:
----------------
Result
Actual result:
--------------
"Warning: SoapClient::__call(): supplied argument is not a valid sdl resource in welcome.php on line 18
There was a problem with your login: Error finding "uri" property"