From:             [EMAIL PROTECTED]
Operating system: Win 2K Pro
PHP version:      4.2.1
PHP Bug Type:     XML related
Bug description:  CDATA incorrect for non block elements

Running PHP 4.2.1 with Apache 2.0.36 on Windows 2000 Profrofessional.  PHP
is running as an Apache module.

XML extension enabled
XSLT extension enabled

For some reason when parsing documents that like:

<doc>
<para>Some text <test /> rest of para text</para>
</doc>

The CDATA that is returned through the xml_set_character_data_handler
seems to return the rest of the para CDATA instead of nothing.

After the data handler has been called, then it calls the element handler
to close the <test/> tag.

An easy way to test is to keep track of the current tag that the parser is
on (by setting it in the open element handler) and then running strlen
over the CDATA has it hits the test tag.

Logically it should close the tag, then process the CDATA or at least
return blank CDATA for the test tag.
-- 
Edit bug report at http://bugs.php.net/?id=17540&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17540&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17540&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17540&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17540&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17540&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17540&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17540&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17540&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17540&r=globals

Reply via email to