The way used to generate the ODS (executing a 'zip' command against a temporary directory ) seems a bit risky and very platform dependant.
I have changed it to use PHP'z ZipArchive class (included in zip enables PHP 5.2.0 and superior. Also available as extension for older PHP ).
I am interested in this new development. Where would I download your recent modifications?
Oh, I see the diff now. Nevermind
This works very well for saveOds. The parseOds function continues to use the tmp file and a UID directory.
Whoops! I don't use it so I didn't pay attention to parseOds, try this:
function parseOds($file) {
$zip = new ZipArchive();
$ok = $zip->open($file);
if (false == $ok) {
return false;
}
$content = $zip->getFromName('content.xml');
$obj = new ods();
$obj->parse($content);
return $obj;
}
Let me now if it works in order to rebuild the diff.
saveOds and parseOds modified
It seems it works, I have changed the patch.