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=5355c8486788c75798fe135c7e08b1661599f3ee;p=hub.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 c5ee29a3c..35f9baa7b 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();