php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1337 xml-parser returns partly garbage in the attribute array.
Submitted: 1999-04-20 22:46 UTC Modified: 1999-04-20 22:51 UTC
From: reiner dot jung at informatik dot uni-oldenburg dot de Assigned:
Status: Closed Package: Other
PHP Version: 3.0.7 OS: Linux-glibc2 20.0.36
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: reiner dot jung at informatik dot uni-oldenburg dot de
New email:
PHP Version: OS:

 

 [1999-04-20 22:46 UTC] reiner dot jung at informatik dot uni-oldenburg dot de
Well, the script is based on your own XML-tutorial scripts.
One startElement function which returns the XML-tag name and all attributes and their values of it.  The problem is that for some attributs the php-script returns kinda garbage. Like: <class name="TEXT"> is returned as <class name="TEXT9"> 
I've checked the expat lib via their c-interface. But the same prog. in c returns the correct name value pairs.

do-conf:
./configure --with-gd=no --with-pgsql --enable-sysvshm=yes --enable-sysvsem=yes  --with-config-file-path --with-system-regex=yes --with-xml

I'm using php directly from the shell (for some prototyping) and I did not install a php.ini file on this machine. So php behaves on it internal functions.

Here is the xml-file:
<?xml version="1.0"?>
<data>
 <struct name="Groesse">
  <variant name="Preise">
   <type class="CURRENCY">preis</type>
  </variant>
  <type class="TEXT">titel</type>
 </struct>
 <struct name="Produkt">
  <variant name="Groessen">
   <type class="Groesse">groessen</type>
  </variant>
  <type class="TEXT">titel</type>
  <type class="TEXT">artikelnummer</type>
 </struct>
 <struct name="Gruppe">
  <variant name="Produkte">
   <type class="Produkt">produkte</type>
  </variant>
  <type class="TEXT">titel</type>
 </struct>
</data>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-20 22:51 UTC] rasmus
This is fixed in CVS.  The current ChangeLog can always be found at: http://cvs.php.net/cvsweb.cgi/ChangeLog?rev=HEAD
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC