php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10754 parsing CDATA with special characters
Submitted: 2001-05-09 11:28 UTC Modified: 2001-06-10 21:25 UTC
From: heiko at love dot de Assigned:
Status: Closed Package: XML related
PHP Version: 4.0.4pl1 OS: Linux (Debian)
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: heiko at love dot de
New email:
PHP Version: OS:

 

 [2001-05-09 11:28 UTC] heiko at love dot de
Parsing a XMLdocument that contains CDATA parts produces errors. Also the parser should leave the CDATA it still tries to parse it. Here is my XMLdoc :
<?xml version='1.0' encoding='UTF-8'?> <cresult> <content> <title> <![CDATA[M?nchen<b>bold</b> ]]> </title> <text> <![CDATA[<p>paragraph <b>bold</b> </p>]]></text> </content> </cresult>

The parser complains about the letter '?' in the second line. When I change it to '?' the document is parsed nicely. Other combinitions like '??' are also parsed nicely. Must be a bug?

My configure line:
'./configure' '--with-apache=/usr/local/src/apache_1.3.19'
                                              '--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/local/lib' '--with-ftp'
                                              '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--with-xml' '-with-dom=/usr/local/lib'
                                              '--enable-versioning' '--enable-track-vars=yes' '--enable-url-includes'
                                              '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--with-config-file-path=/etc'
                                              '--no-create'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-16 02:55 UTC] sniper@php.net
Could you please try with the latest release candidate:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz

using it I can parse your example XML file just fine.

--Jani

 [2001-06-10 21:25 UTC] jmoore@php.net
No feedback. Closing.

- James
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC