From:             [EMAIL PROTECTED]
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

Reply via email to