ID: 29323 Comment by: s dot lemke at infoworxx dot de Reported By: ralf dot praschak at gmx dot net Status: Open Bug Type: WDDX related Operating System: windows 2000 professional sp4 PHP Version: 5.0.0 New Comment:
I experienced the same behaviour with php 5.0.1 running on linux/apache. Previous Comments: ------------------------------------------------------------------------ [2004-07-22 11:56:01] ralf dot praschak at gmx dot net 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 this bug report at http://bugs.php.net/?id=29323&edit=1