php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32914 DOM serialization bug
Submitted: 2005-05-02 17:49 UTC Modified: 2005-05-03 10:59 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: pettrek at go2 dot pl Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.0.3 OS: linux, windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pettrek at go2 dot pl
New email:
PHP Version: OS:

 

 [2005-05-02 17:49 UTC] pettrek at go2 dot pl
Description:
------------
Serializing DOMDocument and other classes from DOM extension is not possible.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-02 17:53 UTC] johannes@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

You need to transform your data to XML and load it again 
from XML (another mechanism won't be faster) 
 [2005-05-02 18:40 UTC] pettrek at go2 dot pl
In my opinion it's a bug. Serialization could be even faster than parsing XML document on each request.

You should consider fixing this.
 [2005-05-03 10:59 UTC] chregu@php.net
No, you can't do it any faster than it parsing an XML document (libxml2 is tuned to the max to parse XML documents as fast as possible), any php implementation can't be faster than that. 

And from a technical point of view, only DomDocument could be serialized, the other classes are AFAIK not doable. But as said, you wouldn't gain any speed anyway... 

If you really want to discuss that, you should use php-xml-dev... This is not a discussion forum (and I broke that rule already with this comment....). But i doubt, you'll have more success there ;) 



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC