From 985b366cc718be327f2f3537e634a2044092e20f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Tue, 16 Jan 2018 15:05:27 +0000 Subject: [PATCH] =?UTF-8?q?Retrofit=20from=20trunk=20N=C2=B01246=20-=20Fix?= =?UTF-8?q?=20Obsolete=20data=20visible=20in=20dependency=20graph.=20*=20F?= =?UTF-8?q?ix=20a=20wrong=20transient=20OQL=20expression=20cache=20introdu?= =?UTF-8?q?ced=20in=20[4943].=20[from=20revision=205257]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:2.4[5259] --- core/oql/expression.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/oql/expression.class.inc.php b/core/oql/expression.class.inc.php index d2308c03e..3438eb2c5 100644 --- a/core/oql/expression.class.inc.php +++ b/core/oql/expression.class.inc.php @@ -85,11 +85,11 @@ abstract class Expression static $aCache = array(); if (array_key_exists($sConditionExpr, $aCache)) { - return $aCache[$sConditionExpr]; + return unserialize($aCache[$sConditionExpr]); } $oOql = new OqlInterpreter($sConditionExpr); $oExpression = $oOql->ParseExpression(); - $aCache[$sConditionExpr] = $oExpression; + $aCache[$sConditionExpr] = serialize($oExpression); return $oExpression; }