#20899 [NEW]: DOM Objects saved in current session can't be accessed after the initial page
| From: | jalonso at art3mis dot com | Date: | Mon, 09 Dec 2002 11:30:46 +0000 |
| Subject: | #20899 [NEW]: DOM Objects saved in current session can't be accessed after the initial page | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-27154@lists.php.net to get a copy of this message | ||
From: jalonso@art3mis.com
Operating system: Debian Linux 3.0
PHP version: 4.3.0RC2
PHP Bug Type: DOM XML related
Bug description: DOM Objects saved in current session can't be accessed after the initial page
Imagine this scenario: You load an XML file (with configuration data) into
the current session along with some custom methods to change data in the
XML object in memory to , finally, save your changes.
But actually you can't use DOM Methods like dump_mem() after registering
your DOM object in the current session.
Try this script:
-------------------------------------
<?php
session_start();
if (!isset($_SESSION['doc']))
$_SESSION['doc'] = domxml_open_file('lalala.xml');
$_SESSION['doc']->dump_mem();
?>
<a href="<?=$_SERVER['SCRIPT_NAME']?>">click</a>
--------------------------------------
lalala.xml is a valid xml file.
--
Edit bug report at http://bugs.php.net/?id=20899&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20899&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20899&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20899&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20899&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20899&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20899&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20899&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20899&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20899&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20899&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20899&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20899&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20899&r=isapi