ID:               49275
 Updated by:       rricha...@php.net
 Reported By:      michaelwalser at gmx dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         SimpleXML related
 Operating System: Debian Lenny
 PHP Version:      5.3.0
 New Comment:

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


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

[2009-08-17 08:01:58] 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


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


-- 
Edit this bug report at http://bugs.php.net/?id=49275&edit=1

Reply via email to