]> git.mxchange.org Git - core.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Mar 2022 02:55:59 +0000 (03:55 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Mar 2022 02:55:59 +0000 (03:55 +0100)
- described an if() block why and when that condition may happen (rarely seen)

Signed-off-by: Roland Häder <roland@mxchange.org>
index.php

index c5ee29a3c69b0240996ef5c6b4f8f0f01b4c847d..35f9baa7b8d4013137e62a3366361c0ed5b0dff5 100644 (file)
--- 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();