php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44700 foreign characters creates linesplit in xml_set_character_data_handler
Submitted: 2008-04-11 14:23 UTC Modified: 2008-04-11 18:42 UTC
From: tr-huso at online dot no Assigned:
Status: Not a bug Package: *XML functions
PHP Version: 5.2.5 OS: Linux Ubuntu 7.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tr-huso at online dot no
New email:
PHP Version: OS:

 

 [2008-04-11 14:23 UTC] tr-huso at online dot no
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-11 18:42 UTC] chregu@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

From http://ch2.php.net/manual/en/function.xml-set-character-data-
handler.php :

"Character data handler is called for every piece of a text in the XML 
document. It can be called multiple times inside each fragment (e.g. for 
non-ASCII strings)."


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC