Bug #1337: xml-parser returns partly garbage in the attribute array.
| From: | reiner dot jung at informatik dot uni-oldenburg dot de | Date: | Wed, 21 Apr 1999 02:46:20 +0000 |
| Subject: | Bug #1337: xml-parser returns partly garbage in the attribute array. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5164@lists.php.net to get a copy of this message | ||
From: reiner.jung@informatik.uni-oldenburg.de
Operating system: Linux-glibc2 20.0.36
PHP version: 3.0.7
PHP Bug Type: Other
Bug description: xml-parser returns partly garbage in the attribute array.
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>
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net