Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

#32233 [Com]: unappropriate session warning

0 views
Skip to first unread message

j dot posthuma at gmail dot com

unread,
May 21, 2006, 5:11:32 PM5/21/06
to
ID: 32233
Comment by: j dot posthuma at gmail dot com
Reported By: cohen1 at gmail dot com
Status: No Feedback
Bug Type: Session related
Operating System: FreeBSD 5.3-RELEASE
PHP Version: 5.0.3
New Comment:

I have the latest cvs ( PHP 5.2.x May 21, 2006 18:30 GMT ) and the bug
is still here @ Windows XP SP2 + Apache 2 + MySQL 5, the solution of
cohen1 is allso not working at my server.


Previous Comments:
------------------------------------------------------------------------

[2005-03-20 18:14:28] sni...@php.net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

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

[2005-03-09 00:38:51] sni...@php.net

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

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

[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

0 new messages