From: Roland Häder Date: Wed, 2 Mar 2022 02:55:59 +0000 (+0100) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ceb7b679e1000712e0613864e9579e4ed31ca819;p=core.git Please cherry-pick: - described an if() block why and when that condition may happen (rarely seen) Signed-off-by: Roland Häder --- diff --git a/index.php b/index.php index c5ee29a3..35f9baa7 100644 --- a/index.php +++ b/index.php @@ -131,7 +131,13 @@ final class ApplicationEntryPoint { // Init application instance $applicationInstance = NULL; - // Is the class there? + /* + * The following class may NOT be loaded at all times. For example, + * it might be the (rare) case that an error has happened BEFORE + * that class had been loaded and cannot be loaded or else an + * infinte loop in invoking this method will take place resulting in + * a stack-overflow error. + */ if (class_exists('Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper')) { // Get application instance $applicationInstance = ApplicationHelper::getSelfInstance();