From f4164f45ed88fee97a17ae54451ae80638433309 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 20 Aug 2015 17:14:25 +0200 Subject: document shell problem --- it_cache.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it_cache.class b/it_cache.class index e4f45c1..58277ae 100644 --- a/it_cache.class +++ b/it_cache.class @@ -39,7 +39,7 @@ static function _defaults($p) } /** - * Get value for specific key from cache. Can be mixed value but no objects. + * Get value for specific key from cache. Can be mixed value but no objects. WARNING: only distributed works from shell * @param $key Key to get value for * @param $p['distributed'] Use distributed memcache (scalars may become strings) [false] * @return Value for given key or null @@ -59,7 +59,7 @@ static function get($key, $p = array()) } /** - * Put value for specific key into cache. Can be mixed value but no objects. + * Put value for specific key into cache. Can be mixed value but no objects. WARNING: only distributed works from shell * @param $key Key to put value with * @param $value Value to put (mixed but no objects allowed) * @param $p['distributed'] Use distributed memcache (scalars may become strings) [false] -- cgit v1.2.3 From 6a64e44bf81efcda494d4b2a7b147a25f552039b Mon Sep 17 00:00:00 2001 From: David Flatz Date: Wed, 2 Sep 2015 12:09:26 +0200 Subject: ignore warning from libpng that is not an error --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index c5c1179..eed0d1f 100644 --- a/it.class +++ b/it.class @@ -690,7 +690,7 @@ static function imageconvert($p) $ultratimeout = file_exists("/opt/ultra/bin/ultratimeout") ? "/opt/ultra/bin/ultratimeout 30 " : ""; if (in_array($type, explode(',', $p['types']))) # Valid type? - $cmdoutput = it::exec($ultratimeout . 'gm convert 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?"', $p); + $cmdoutput = it::exec('( ' . $ultratimeout . 'gm convert 2>&1 {-opts} {in} {type}:{out} || echo "SHELL ERROR $?" ) | grep -v "iCCP: known incorrect sRGB profile"', $p); return $cmdoutput === ""; } -- cgit v1.2.3