From:             ralf dot praschak at gmx dot net
Operating system: windows 2000 professional sp4
PHP version:      5.0.0
PHP Bug Type:     WDDX related
Bug description:  php5 cannot deserialize greater wddx packets

Description:
------------
for exchanging a screenshot gallery i decode every exif information in a
wddx packet. worked without problems in php4.3.x under win32 and linux.

now with php5.0.0, the wddx is generated proberly but cannot deserialized.
if i reduce the size of the hash, it works, but that is not a solution. the
error.log from apache shows nothing hintful.

Reproduce code:
---------------
1. the wddx generation
// save the cache file
        $wddx = wddx_packet_start("Screenshots");
        wddx_add_vars($wddx, "sort");
        $wddx = wddx_packet_end($wddx);
        $wddx = addslashes($wddx);

        $file = $_cache."_includes/screenshots.wddx.php";
        $fp = fopen($file, "w");
        fwrite($fp, $wddx);
        fclose($fp);

2. the deserialize process
// read wddx cache file
        $wddx = file_get_contents($_cache."_includes/screenshots.wddx.php");
        $wddx = stripslashes($wddx);
        $wddx = wddx_deserialize($wddx);
        $wddx = $wddx["sort"];

Expected result:
----------------
an array with the original hash

Actual result:
--------------
an empty result

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

Reply via email to