projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the Porter Stemmer module to improve searches. This doesn't deal with some...
[yaffs-website]
/
vendor
/
composer
/
ClassLoader.php
diff --git
a/vendor/composer/ClassLoader.php
b/vendor/composer/ClassLoader.php
index 2c72175e7723ad0c73fd3154eb0fecc420810448..fce8549f0781bafdc7da2301b84d048286757445 100644
(file)
--- a/
vendor/composer/ClassLoader.php
+++ b/
vendor/composer/ClassLoader.php
@@
-279,7
+279,7
@@
class ClassLoader
*/
public function setApcuPrefix($apcuPrefix)
{
*/
public function setApcuPrefix($apcuPrefix)
{
- $this->apcuPrefix = function_exists('apcu_fetch') &&
ini_get('apc.enabled'
) ? $apcuPrefix : null;
+ $this->apcuPrefix = function_exists('apcu_fetch') &&
filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN
) ? $apcuPrefix : null;
}
/**
}
/**
@@
-377,11
+377,11
@@
class ClassLoader
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
- $search = $subPath
.
'\\';
+ $search = $subPath
.
'\\';
if (isset($this->prefixDirsPsr4[$search])) {
if (isset($this->prefixDirsPsr4[$search])) {
+ $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
foreach ($this->prefixDirsPsr4[$search] as $dir) {
- $length = $this->prefixLengthsPsr4[$first][$search];
- if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
+ if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
return $file;
}
}