Increase version to 11.0.1

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2016-12-29 16:27:31 +01:00
parent a2b45c3cb7
commit 5bf56f67be
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
4 changed files with 35 additions and 9 deletions

@ -1 +1 @@
Subproject commit f2974c2e72b2ad5ab7ae745936c4d866405d2b61
Subproject commit 06ddcb5f830abe40870c1738381a61d69e34006b

View File

@ -55,6 +55,7 @@ class ClassLoader
private $classMap = array();
private $classMapAuthoritative = false;
private $missingClasses = array();
private $apcuPrefix;
public function getPrefixes()
{
@ -271,6 +272,26 @@ class ClassLoader
return $this->classMapAuthoritative;
}
/**
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
}
/**
* The APCu prefix in use, or null if APCu caching is not enabled.
*
* @return string|null
*/
public function getApcuPrefix()
{
return $this->apcuPrefix;
}
/**
* Registers this instance as an autoloader.
*
@ -313,11 +334,6 @@ class ClassLoader
*/
public function findFile($class)
{
// work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
if ('\\' == $class[0]) {
$class = substr($class, 1);
}
// class map lookup
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
@ -325,6 +341,12 @@ class ClassLoader
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false;
}
if (null !== $this->apcuPrefix) {
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
if ($hit) {
return $file;
}
}
$file = $this->findFileWithExtension($class, '.php');
@ -333,6 +355,10 @@ class ClassLoader
$file = $this->findFileWithExtension($class, '.hh');
}
if (null !== $this->apcuPrefix) {
apcu_add($this->apcuPrefix.$class, $file);
}
if (false === $file) {
// Remember that this class does not exist.
$this->missingClasses[$class] = true;

View File

@ -93,7 +93,7 @@ EOD;
$client
->expects($this->once())
->method('get')
->with('https://apps.nextcloud.com/api/v1/platform/11.0.0/apps.json')
->with('https://apps.nextcloud.com/api/v1/platform/11.0.1/apps.json')
->willReturn($response);
$response
->expects($this->once())

View File

@ -26,10 +26,10 @@
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
$OC_Version = array(11, 0, 0, 10);
$OC_Version = array(11, 0, 1, 0);
// The human readable string
$OC_VersionString = '11.0.0';
$OC_VersionString = '11.0.1';
$OC_VersionCanBeUpgradedFrom = array(9, 1);