|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11031 XML parser do not let use ']' in CDATA string
Submitted: 2001-05-22 17:18 UTC Modified: 2001-05-22 19:26 UTC
From: Mykolas at Labas dot Com Assigned:
Status: Not a bug Package: *XML functions
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
1 + 8 = ?
Subscribe to this entry?

 [2001-05-22 17:18 UTC] Mykolas at Labas dot Com
Extract from data I giving to parse:

<LongDesc><![CDATA[HP OmniBook XE3 Cel600 13 HPA 64/7 W[AN]]]></LongDesc> 

Parser executes data function two times:
for data: "HP OmniBook XE3 Cel600 13 HPA 64/7 W[AN" 
and for data: "]"

It happens only in case of using [] in the data string.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 19:26 UTC]
This is not a bug in PHP, but rather a property of the XML parser (which is external).
You need to escape your [ and ] 's

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 01:01:28 2024 UTC