[VarDumper] play nice with open_basedir when looking for composer.json

This commit is contained in:
Nicolas Grekas 2017-08-12 22:32:56 +02:00
parent eea78fdc78
commit 1bea774f4d

View File

@ -89,7 +89,11 @@ class LinkStub extends ConstStub
}
$parent = $dir;
while (!file_exists($parent.'/composer.json')) {
while (!@file_exists($parent.'/composer.json')) {
if (!@file_exists($parent)) {
// open_basedir restriction in effect
break;
}
if ($parent === dirname($parent)) {
return self::$composerRoots[$dir] = false;
}