ID:               20899
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Won\'t fix
 Bug Type:         DOM XML related
 Operating System: Debian Linux 3.0
 PHP Version:      4.3.0RC2
 New Comment:

This is not possible and most presumably never will be possible. We
would have to store the actual xml-data somewhere, but php knows only
the pointer to the xml-data which is handled by the libxml2-library and
this stuff gets freed after script-end.

you have to parse and save it everytime or use your own xml-structure
built with php-objects, like maybe XML_Tree from PEAR (never tested
that, though)

chregu


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

[2002-12-09 05:30:46] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=20899&edit=1

Reply via email to