- Apply upstream patch for https://bugs.php.net/78890 + pear-cacheid-array-check.patch - Recommend php7-openssl to allow https sources to be used - Modify metadata_dir for system configuration only - Add /var/lib/pear directory where xml files are stored - Cleanup %files section OBS-URL: https://build.opensuse.org/request/show/754999 OBS-URL: https://build.opensuse.org/package/show/devel:languages:php/php7-pear?expand=0&rev=15
12 lines
372 B
Diff
12 lines
372 B
Diff
--- a/PEAR/REST.php
|
|
+++ b/PEAR/REST.php
|
|
@@ -178,7 +178,7 @@
|
|
|
|
$cachettl = $this->config->get('cache_ttl');
|
|
// If cache is newer than $cachettl seconds, we use the cache!
|
|
- if (time() - $cacheid['age'] < $cachettl) {
|
|
+ if (is_array($cacheid) && time() - $cacheid['age'] < $cachettl) {
|
|
return $this->getCache($url);
|
|
}
|
|
|