From 4477f33b31c55a81e63d9daa5d1f6a86b38ca806 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 1 Mar 2018 14:01:57 +0100 Subject: [PATCH] Fix interference between two similar namespaces --- library/Icinga/Application/ClassLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/ClassLoader.php b/library/Icinga/Application/ClassLoader.php index 33e8bb46e..aed26f769 100644 --- a/library/Icinga/Application/ClassLoader.php +++ b/library/Icinga/Application/ClassLoader.php @@ -112,7 +112,7 @@ class ClassLoader } foreach ($this->namespaces as $namespace => $dir) { - if ($class === strstr($class, $namespace)) { + if ($class === strstr($class, "$namespace\\")) { return $this->buildClassFilename($class, $namespace); } }