diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-08-24 17:39:38 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-08-24 17:39:38 +0200 |
commit | f564b500ca718e735ed72530a52c4fe57d2c3ea6 (patch) | |
tree | f0acc2aab644f1eb105bb140d52887f0fdbc24bd /php-pear/php-pear-1.9.4-restcache.patch | |
parent | 9bbb50b3a32511baadb6bfdcb464a4eca526a413 (diff) |
php-pear: for SCL
Diffstat (limited to 'php-pear/php-pear-1.9.4-restcache.patch')
-rw-r--r-- | php-pear/php-pear-1.9.4-restcache.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/php-pear/php-pear-1.9.4-restcache.patch b/php-pear/php-pear-1.9.4-restcache.patch new file mode 100644 index 0000000..361309b --- /dev/null +++ b/php-pear/php-pear-1.9.4-restcache.patch @@ -0,0 +1,21 @@ + +Workaround for: + + https://bugzilla.redhat.com/show_bug.cgi?id=747361 + +--- REST.php.restcache ++++ REST.php +@@ -234,6 +234,13 @@ + } + } + ++ if (!is_writeable($cache_dir)) { ++ // If writing to the cache dir is not going to work, silently do nothing. ++ // An ugly hack, but retains compat with PEAR 1.9.1 where many commands ++ // work fine as non-root user (w/out write access to default cache dir). ++ return true; ++ } ++ + if ($cacheid === null && $nochange) { + $cacheid = unserialize(implode('', file($cacheidfile))); + } |