ID:               46138
 User updated by:  daniel dot miksik at gmail dot com
 Reported By:      daniel dot miksik at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         XML related
 Operating System: Linux
 PHP Version:      5.2.6
 New Comment:

Looks like this has already been reported at
http://bugs.php.net/bug.php?id=45996, so closing.


Previous Comments:
------------------------------------------------------------------------

[2008-09-22 10:33:10] daniel dot miksik at gmail dot com

Further info from our webmaster:
- Linux Fedora 9
- libxml 2.7.1

I have also tested the given example code in PHP 5.2.6 running on WinXP
machine, it worked fine.

------------------------------------------------------------------------

[2008-09-20 18:19:55] daniel dot miksik at gmail dot com

I forgot to link to a very similar bug reported for PHP 5.0.3 at
http://bugs.php.net/bug.php?id=31139.

------------------------------------------------------------------------

[2008-09-20 18:09:47] daniel dot miksik at gmail dot com

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 this bug report at http://bugs.php.net/?id=46138&edit=1

Reply via email to