|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-09 00:38 UTC] sniper@php.net
[2005-03-20 18:14 UTC] sniper@php.net
[2006-05-21 21:10 UTC] j dot posthuma at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
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.