diff --git a/lib/autoload/sfCoreAutoload.class.php b/lib/autoload/sfCoreAutoload.class.php index d16a0310b..6694b35ad 100755 --- a/lib/autoload/sfCoreAutoload.class.php +++ b/lib/autoload/sfCoreAutoload.class.php @@ -116,7 +116,9 @@ public function autoload($class) */ public function getClassPath($class) { + $old = setlocale(LC_ALL, 'C'); $class = strtolower($class); + setlocale(LC_ALL, $old); if (!isset($this->classes[$class])) { @@ -169,7 +171,9 @@ static public function make() || false !== stripos($contents, 'interface '.$class) || false !== stripos($contents, 'trait '.$class)) { + $old = setlocale(LC_ALL, 'C'); $classes .= sprintf(" '%s' => '%s',\n", strtolower($class), substr(str_replace($libDir, '', $file), 1)); + setlocale(LC_ALL, $old); } }