Bug #13639 Updated: CDATA Section Unsupported?

From: Date: Mon, 03 Dec 2001 05:17:11 +0000
Subject: Bug #13639 Updated: CDATA Section Unsupported?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72302@lists.php.net to get a copy of this message
ID: 13639
Updated by: mfischer
Reported By: ben@wizzard.org
Old Status: Feedback
Status: Closed
Bug Type: DOM XML related
Operating System: BSDI BSD/OS 4.0.1
PHP Version: 4.0CVS-2001-10-11
New Comment:

This is supposed to be fixed in CVS.

See http://bugs.php.net/bug.php?id=10667.php
for a working sample (just do a print_r($docTree); ) where to find your CDATA Object.

Closing.

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

[2001-11-29 18:48:11] mfischer@php.net

Please paste the output of your script with and without CDATA in the xml source.

Feedback.

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

[2001-10-11 05:22:05] ben@wizzard.org

Sorry I didn't check this before. If the CDATA section is removed from the sample document, the
test script returns what appears to be a complete tree with this warning;

Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0.
I'm finding some other issues with DOM XML in this build, such as the domxml_root function
(called as a method) returning an object from the "DomElement" class instead of
"DomNode."

I'm don't mean to report two problems at once. I suspect these two issues are both related
to getting a CVS snapshot when the DOM XML code is mid-change.

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

[2001-10-11 02:44:59] ben@wizzard.org

Calling mtree on an XML document that contains a CDATA section returns an incomplete tree prefixed
with this warning:

Warning: Unsupported Node type: 4

What follows is a script that tries to make a tree from a well-formed (Brown STG XML validator) XML
document. The code works fine on 4.0.6 release and fails as described above on the cvs snap.
(php4-200110102100)

<PLAINTEXT>
<?php

$xmlstr = join('',file('http://www.dbq365.com/iml/sample_interview.xml'));

$tree = xmltree($xmlstr);

print_r($tree);

?>


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



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



Thread (4 messages)

« previous php.dev (#72302) next »