From: trannicholas at yahoo dot com Operating system: Windows XP PHP version: 5.1.2 PHP Bug Type: SOAP related Bug description: Putting a SoapClient into Session causes the client to no longer work.
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" -- Edit bug report at http://bugs.php.net/?id=36395&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36395&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36395&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36395&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36395&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36395&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36395&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36395&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36395&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36395&r=support Expected behavior: http://bugs.php.net/fix.php?id=36395&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36395&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36395&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36395&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36395&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36395&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36395&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36395&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36395&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36395&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36395&r=mysqlcfg