summaryrefslogtreecommitdiffstats
path: root/php-pear-1.10-restcache.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-31 10:50:48 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-31 10:50:48 +0200
commit9a7dac7854b47f9bfebbc47e9b2ba28fb8047326 (patch)
tree8e9f05f8f0d32451a06c8625be3de9f4ba872753 /php-pear-1.10-restcache.patch
parentf37e9fd56e4179739a7e87efbe3e9ef002002222 (diff)
php-pear: 1.10.0dev2
Diffstat (limited to 'php-pear-1.10-restcache.patch')
-rw-r--r--php-pear-1.10-restcache.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/php-pear-1.10-restcache.patch b/php-pear-1.10-restcache.patch
deleted file mode 100644
index 40d129f..0000000
--- a/php-pear-1.10-restcache.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From fccb285ce442c710d9795d2a102b229799de4922 Mon Sep 17 00:00:00 2001
-From: Remi Collet <fedora@famillecollet.com>
-Date: Sun, 26 Jul 2015 08:08:23 +0200
-Subject: [PATCH] allow pear to work when cache_dir is not writable
-
----
- PEAR/REST.php | 7 +++++++
- 1 file changed, 7 insertions(+)
-
-diff --git a/PEAR/REST.php b/PEAR/REST.php
-index c5ed192..1e472b7 100644
---- a/PEAR/REST.php
-+++ b/PEAR/REST.php
-@@ -235,6 +235,13 @@ function saveCache($url, $contents, $lastmodified, $nochange = false, $cacheid =
- }
- }
-
-+ 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)));
- }