From:             clemens at gutweiler dot net
Operating system: Linux
PHP version:      4.4.3
PHP Bug Type:     WDDX related
Bug description:  wddx_serialize_value geneates no wellformed xml

Description:
------------
wddx_serialize_value generates an invalid wddx package/xml 
string.

in php version 4.4.2 the sample code works, in 4.4.3 not.

Reproduce code:
---------------
<?php
        $array = array(
                'index' => array(
                        1 => 'integer key',
                        'string' => 'string key'
                )
        );
        var_dump( wddx_serialize_value( $array ) );
?>


Expected result:
----------------
/web/cg/playground# /usr/local/php-4.4.2-fastcgi/bin/php 
wddx.php 

string(219) "<wddxPacket version='1.0'><header/
><data><struct><var name='index'><struct><var 
name='1'><string>integer key</string></var><var 
name='string'><string>string key</string></var></struct></
var></struct></data></wddxPacket>"


Actual result:
--------------
/web/cg/playground# /usr/local/php-4.4.3-fastcgi/bin/php 
wddx.php 

string(179) "<wddxPacket version='1.0'><header/
><data><struct><var <struct><string>integer key</string></
var><var n<string>string key</string></var></struct></var></
struct></data></wddxPacket>"


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

Reply via email to