Private_DumpObjects does not report file write failure
Status: Pre-Alpha
Brought to you by:
hvm_pt
Modify the Private_DumpObjects function in serialized.inc
to account for failed writes to files.
Following code demonstrates one method of resolving
the issue.
function Private_DumpObjects($filename, $objects) {
$result = FALSE;
if (is_array($objects)) {
$fp = fopen($filename, "w");
if(fwrite($fp, serialize($objects))){
$result = TRUE;
}else{
echo "Cannot write to $filename<BR>";
}
fclose($fp);
}
sleep(1);
#echo "<pre>";
#print_r($objects);
#echo "<pre></hr>";
return($result);
}