Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35031 : tag contents are handled the wrong way they do contain:öäü
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 8th June 02:09
php-bugs@lists.php.net (robert dot bouwens at swissmains dot
External User
 
Posts: 1
Default #35031 : tag contents are handled the wrong way they do contain:öäü



From: robert dot bouwens at swissmains dot com
Operating system: windows xc sp2
PHP version: 5.0.5
PHP Bug Type: *XML functions
Bug description: tag contents are handled the wrong way they do contain:öäü

Description:
------------
<NAME>Höchstgeschwindigkeit</NAME>
The upper tag will not be corectly handled when using the
xml_set_character_data_handler. The do***ent is correctly formatted using
utf-8 coding standards.
The elementhandler for the upper tag will be called twice:
1st: "H"
2nd: "öchstgeschwindigkeit" which is a pain when creating html tables.

Reproduce code:
---------------
xml_set_character_data_handler( $parser, "daten" );

function daten( $parser, $xml_data )
{
// Datenbereich ausgeben
if ( $this->valid_list_item == true )
{
$sdata = utf8_decode( $xml_data );
$this->data[$this->cv][] = utf8_decode( $sdata );
print ( $sdata );
print ( "|" );
}
}


Expected result:
----------------
The tag character handler does not recognize extended cahractersets. The
tag character handler for the tag "NAME" should only be called once.


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


  sponsored links


2 8th June 02:09
derick
External User
 
Posts: 1
Default #35031 : tag contents are handled the wrong way they do contain:öäü



ID: 35031
Updated by: derick@php.net
Reported By: robert dot bouwens at swissmains dot com
-Status: Open
+Status: Bogus
Bug Type: *XML functions
Operating System: windows xc sp2
PHP Version: 5.0.5
New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the do***entation 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

An XML parser is allowed to breakup character data like this, this is
therefore not a bug. Your application needs to deal with this. The same
would happen incase you have an entity there. If you still believe it is
a bug, you need to talk to the libxml2 authors, as it's their library
which does this behavior.


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

[2005-10-31 10:24:39] robert dot bouwens at swissmains dot com

Description:
------------
<NAME>Höchstgeschwindigkeit</NAME>
The upper tag will not be corectly handled when using the
xml_set_character_data_handler. The do***ent is correctly formatted
using utf-8 coding standards.
The elementhandler for the upper tag will be called twice:
1st: "H"
2nd: "öchstgeschwindigkeit" which is a pain when creating html tables.

Reproduce code:
---------------
xml_set_character_data_handler( $parser, "daten" );

function daten( $parser, $xml_data )
{
// Datenbereich ausgeben
if ( $this->valid_list_item == true )
{
$sdata = utf8_decode( $xml_data );
$this->data[$this->cv][] = utf8_decode( $sdata );
print ( $sdata );
print ( "|" );
}
}


Expected result:
----------------
The tag character handler does not recognize extended cahractersets.
The tag character handler for the tag "NAME" should only be called
once.

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


--
Edit this bug report at http://bugs.php.net/?id=35031&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666