From:             daniel dot miksik at gmail dot com
Operating system: Linux
PHP version:      5.2.6
PHP Bug Type:     XML Reader
Bug description:  XML parser strippig < and >

Description:
------------
Configure command: './configure' '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-libdir=lib64' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
'--disable-rpath' '--without-pear' '--with-bz2' '--with-curl'
'--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx'
'--enable-dio' '--without-mime-magic' '--without-sqlite'
'--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata'
'--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd'
'--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC'
'--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'
'--disable-json' '--without-pspell'

libxml2 Version: 2.6.32


Reproduce code:
---------------
<?php
$xml_parser = xml_parser_create();
xml_parse_into_struct($xml_parser, "<SUMMARY>This is a link to &lt;a
href=&quot;http://example.com&quot;&gt;Example&lt;/a&gt;.</SUMMARY>",
$vals);
xml_parser_free($xml_parser);
echo "Vals array\n";
print_r($vals);
?>

Expected result:
----------------
Vals array
Array
(
    [0] => Array
        (
            [tag] => SUMMARY
            [type] => complete
            [level] => 1
            [value] => This is a link to <a
href="http://example.com";>Example</a>.
        )

)

Actual result:
--------------
Vals array
Array
(
    [0] => Array
        (
            [tag] => SUMMARY
            [type] => complete
            [level] => 1
            [value] => This is a link to a
href=http://example.comExample/a.
        )

)

-- 
Edit bug report at http://bugs.php.net/?id=46138&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46138&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46138&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46138&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46138&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46138&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46138&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46138&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46138&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46138&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46138&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46138&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46138&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46138&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46138&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46138&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46138&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46138&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46138&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46138&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46138&r=mysqlcfg

Reply via email to