Blame SOURCES/php-pear-1.9.4-restcache.patch

518e21
518e21
Workaround for:
518e21
518e21
 https://bugzilla.redhat.com/show_bug.cgi?id=747361
518e21
518e21
--- REST.php.restcache
518e21
+++ REST.php
518e21
@@ -234,6 +234,13 @@
518e21
             }
518e21
         }
518e21
 
518e21
+        if (!is_writeable($cache_dir)) {
518e21
+            // If writing to the cache dir is not going to work, silently do nothing.
518e21
+            // An ugly hack, but retains compat with PEAR 1.9.1 where many commands
518e21
+            // work fine as non-root user (w/out write access to default cache dir).
518e21
+            return true;
518e21
+        }
518e21
+
518e21
         if ($cacheid === null && $nochange) {
518e21
             $cacheid = unserialize(implode('', file($cacheidfile)));
518e21
         }