php.net |  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
Votes:8
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michaelwalser at gmx dot net
New email:
PHP Version: OS:

 

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


this code says more than 1000 words ;)

Reproduce code:
---------------
<?php
session_start();

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

	echo "Session variable set... Please hit F5";
}
else
{
	$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

Patches

Pull Requests

History

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

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 01:01:29 2024 UTC