From 9bab7c03234040be401601f0a12fa5bba1a8a662 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Tue, 24 Jun 2014 13:22:43 +0200 Subject: [PATCH] Signal that resolvePath doesn't support Windows refs #6564 --- library/Icinga/Application/Config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Application/Config.php b/library/Icinga/Application/Config.php index 1c6b6ba49..0336c588d 100644 --- a/library/Icinga/Application/Config.php +++ b/library/Icinga/Application/Config.php @@ -165,6 +165,10 @@ class Config extends Zend_Config */ 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) { return $path; }