ID: 32233 Updated by: [EMAIL PROTECTED] Reported By: cohen1 at gmail dot com -Status: Open +Status: Feedback -Bug Type: Compile Warning +Bug Type: Session related Operating System: FreeBSD 5.3-RELEASE PHP Version: 5.0.3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-03-08 17:33:05] cohen1 at gmail dot com Description: ------------ When I load a simplexml object into a session var. after doing session_start() the rest of the page completes, but next time load the page and it does session_start() in the same browser session, I get a warning: Warning: session_start() [function.session-start]: Node no longer exists in ... on line 46 Line 46: session_start() I found out that the problem only happens when i do this: $_SESSION['orderprice'] = $rtn->products->product[0]['price']; var_dump($rtn->products->product[0]['price']) prints: object(SimpleXMLElement)#11 (1) { [0]=> string(3) "0.5" } If i do: $_SESSION['orderprice'] = (string)$rtn->products->product[0]['price']; There is no problem at all. First php bug report, bear with me please. Reproduce code: --------------- session_start(); $_SESSION['orderprice'] = $rtn->products->product[0]['price']; yelds warning in session_start() if i do: session_start(); $_SESSION['orderprice'] = (string)$rtn->products->product[0]['price']; there is no problem. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32233&edit=1