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
 [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 11:01:34 2024 UTC