From:             clemens at gutweiler dot net
Operating system: Linux 2.6.3
PHP version:      5.0.0RC2
PHP Bug Type:     WDDX related
Bug description:  problem with umlaut in wddx_deserialize

Description:
------------
wddx_deserialize stops deserializing at german umlaut character.

PHP Version: 5.0.0RC3RC2
This code works properly on PHP 4

Reproduce code:
---------------
<?php
        
        $wddx_data = 'test';
        var_dump( wddx_deserialize( wddx_serialize_value( $wddx_data ) ) );
        
        $wddx_data = 'teäst';
        var_dump( wddx_serialize_value( $wddx_data ) );
        var_dump( wddx_deserialize( wddx_serialize_value( $wddx_data ) ) );
        
        $wddx_data = array( 'string' => 'teäst' );
        var_dump( wddx_deserialize( wddx_serialize_value( $wddx_data ) ) );
        
?>

Expected result:
----------------
string(4) "test"
string(83) "<wddxPacket
version='1.0'><header/><data><string>teäst</string></data></wddxPacket>"
string(5) "teäst"
array(1) {
  ["string"]=>
  string(5) "teäst"
}


Actual result:
--------------
string(4) "test"
string(83) "<wddxPacket
version='1.0'><header/><data><string>teäst</string></data></wddxPacket>"
string(2) "te"
NULL


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

Reply via email to