#193 Fixed regression due to the usage of gzcompress/gzuncompress

SVN:trunk[634]
This commit is contained in:
Romain Quetiez
2010-07-28 10:38:45 +00:00
parent 86f953383e
commit 61a8b506f7

View File

@@ -493,13 +493,16 @@ class DBObjectSearch
public function serialize()
{
$sOql = $this->ToOql();
return base64_encode(gzcompress($sOql));
return base64_encode($sOql);
}
static public function unserialize($sValue)
{
$sOql = base64_decode($sValue);
return self::FromOQL(gzuncompress($sOql));
// We've tried to use gzcompress/gzuncompress, but for some specific queries
// it was not working at all (See Trac #193)
// gzuncompress was issuing a warning "data error" and the return object was null
return self::FromOQL($sOql);
}
// SImple BUt Structured Query Languag - SubuSQL