[Debug] work around failing chdir() on Darwin

This commit is contained in:
Maria Grazia Patteri 2019-10-23 23:18:21 +02:00 committed by Nicolas Grekas
parent b9f69441c5
commit f40373eb7c

View File

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