[Debug] work around failing chdir() on Darwin
This commit is contained in:
parent
b9f69441c5
commit
f40373eb7c
@ -455,7 +455,11 @@ class DebugClassLoader
|
||||
$real = self::$darwinCache[$kDir][0];
|
||||
} else {
|
||||
$dir = getcwd();
|
||||
chdir($real);
|
||||
|
||||
if (!@chdir($real)) {
|
||||
return $real.$file;
|
||||
}
|
||||
|
||||
$real = getcwd().'/';
|
||||
chdir($dir);
|
||||
|
||||
|
Reference in New Issue
Block a user