From:             tr-huso at online dot no
Operating system: Linux Ubuntu 7.10
PHP version:      5.2.5
PHP Bug Type:     *XML functions
Bug description:  foreign characters creates linesplit in 
xml_set_character_data_handler

Description:
------------
XML-files containing foreign keys like æ, ø and å makes the
xml_set_character_data_handler splits the line in two.

PHP is standard set up in Ubuntu version 7.10.

This is sort of the same bug as #30951, but this case is closed.

Reproduce code:
---------------
I based my code on Example 2. Map XML to HTML to parse information from
the XML-file.

Just create a document with the foreign keys æ. ø and å and you should
pretty much be able to recreate the bug.

Instead of using echo insert the value in the code into a string or end
all echos with a <br>


Expected result:
----------------
I expected that the line that included the foreign character was returned
in whole, not splitted with a line feed.

Actual result:
--------------
it returns a line feed.

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

Reply via email to