php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1116 garbage character in xml parser function
Submitted: 1999-02-03 14:25 UTC Modified: 1999-03-09 07:59 UTC
From: kjell at sb dot luth dot se Assigned: ssb (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (03/02/1999) OS: Linux
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: kjell at sb dot luth dot se
New email:
PHP Version: OS:

 

 [1999-02-03 14:25 UTC] kjell at sb dot luth dot se
Using the "XML External Entity Example" from the manual (http://www.php3.org/manual/ref.xml.php3) returns extra garbage
characters in the $v result from the $attribs array in "StartElement"

copying the files xml.c (version 1.16) and php3_xml.h from php-3.0.6
to the cvs version seems to fix the problem

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-03-09 07:59 UTC] steffann
If I had to guess, I'd say this patch is the problem:

http://cvs.php.net/cvsweb.cgi/functions/xml.c.diff?r1=1.20&r2=1.21

I'll let Stig sort it out.

--

xml_utf8_decode didn't add a 0 to the end of the decoded string. Fixed in cvs.

-Sander
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 15:01:34 2024 UTC