#25427 [Fbk->Opn]: XML-parser fails when entity &#XX; encountered ( XX is a code of character )
| From: | sad at spider dot ru | Date: | Mon, 08 Sep 2003 07:18:31 +0000 |
| Subject: | #25427 [Fbk->Opn]: XML-parser fails when entity &#XX; encountered ( XX is a code of character ) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47230@lists.php.net to get a copy of this message | ||
ID: 25427
User updated by: sad at spider dot ru
Reported By: sad at spider dot ru
-Status: Feedback
+Status: Open
Bug Type: *XML functions
Operating System: linux gentoo
PHP Version: 4.3.3
New Comment:
JUST try to parse EXACTLY the following XML:
<test>
abc

abc
</test>
you'll see that End_Element_Handler was not called.
and a error was not generated.
--
php configuration:
'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--without-readline'
'--with-mnogosearch=/opt/mnogosearch'
'--with-apxs=/usr/sbin/apxs' '--without-db3'
'--without-db4' '--without-db2' '--with-mcrypt=/usr'
'--with-mhash' '--with-gdbm=/usr' '--with-pgsql=/usr'
'--with-xpm-dir=/usr/X11R6' '--with-gd'
'--enable-gd-native-ttf' '--with-png-dir=/usr'
'--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif'
'--with-tiff-dir=/usr' '--with-mysql=/usr'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock'
'--with-ttf' '--with-t1lib' '--with-gettext'
'--without-qtdom' '--with-pspell' '--with-openssl'
'--without-curl' '--with-imap' '--without-ldap'
'--with-dom' '--with-dom-xslt' '--with-dom-exslt'
'--without-kerberos' '--with-pam' '--disable-memory-limit'
'--disable-ipv6' '--enable-dbx' '--with-imap-ssl'
'--with-zlib' '--with-zlib-dir=/usr/lib'
'--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot'
'--with-xmlrpc' '--enable-wddx' '--with-xml'
'--enable-mbstring=all' '--enable-mbregex' '--with-bz2'
'--with-crack' '--with-ndbm' '--with-cdb'
'--enable-bcmath' '--enable-calendar' '--enable-dbase'
'--enable-filepro' '--enable-ftp' '--with-mime-magic'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-sysvipc' '--with-iconv' '--enable-shmop'
'--enable-dio' '--enable-inline-optimization'
'--enable-track-vars' '--enable-trans-sid'
'--enable-versioning'
'--with-config-file-path=/etc/php/apache1-php4'
Previous Comments:
------------------------------------------------------------------------
[2003-09-08 03:05:09] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-09-08 03:01:50] sad at spider dot ru
Description:
------------
if we try to parse the following
<test> abc  abc </test>
xml-parser calls
start_element for "test"
data_element for "abc "
and stops.
end_element for "test" was not called
and even error was not generated.
--
is there some other entity to code characters?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25427&edit=1