php7-pear/pear-cacheid-array-check.patch
Arjen de Korte 086bc75037 Accepting request 754999 from home:adkorte
- 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
2019-12-07 23:05:20 +00:00

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);
}