Signal that resolvePath doesn't support Windows

refs #6564
This commit is contained in:
Alexander Klimov 2014-06-24 13:22:43 +02:00
parent ff87588d96
commit 9bab7c0323
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ class Config extends Zend_Config
*/ */
public static function resolvePath($path) public static function resolvePath($path)
{ {
if (Platform::isWindows()) {
throw new ProgrammingError('Windows support has not yet been implemented');
}
if (strpos($path, DIRECTORY_SEPARATOR) === 0 || self::$configDir === false) { if (strpos($path, DIRECTORY_SEPARATOR) === 0 || self::$configDir === false) {
return $path; return $path;
} }