|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49275 "Node no longer exists" error when storing simplexml object to session
Submitted: 2009-08-17 08:01 UTC Modified: 2009-09-25 15:41 UTC
Avg. Score:4.0 ± 1.0
Reproduced:8 of 8 (100.0%)
Same Version:7 (87.5%)
Same OS:1 (12.5%)
From: michaelwalser at gmx dot net Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.3.0 OS: Debian Lenny
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: michaelwalser at gmx dot net
New email:
PHP Version: OS:


 [2009-08-17 08:01 UTC] michaelwalser at gmx dot net

this code says more than 1000 words ;)

Reproduce code:

	$xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8"?> <blah></blah>');
	$_SESSION['xml'] = $xml;

	echo "Session variable set... Please hit F5";
	$wtf = $_SESSION['xml'];
	if($wtf) echo 'lol'; // This triggers the error


Actual result:
Warning: session_start() [function.session-start]: Node no longer exists in /var/www/phperr.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/phperr.php:2) in /var/www/phperr.php on line 2

Warning: main() [function.main]: Node no longer exists in /var/www/phperr.php on line 14

Warning: Unknown: Node no longer exists in Unknown on line 0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-25 15:41 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Cannot serialize object wrapping 3rd party library structs. Must 
serialize the xml (to a string) and store that to session and reload the 
xml when restoring from session
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 29 20:03:46 2023 UTC