]> git.mxchange.org Git - core.git/blobdiff - framework/bootstrap/class_FrameworkBootstrap.php
Continued:
[core.git] / framework / bootstrap / class_FrameworkBootstrap.php
index 79302a32066ea1e66cc8666ecd69c0b361c5ab64..09895b37bb342865a0eebb51f8615b7a4ad420a8 100644 (file)
@@ -187,30 +187,36 @@ final class FrameworkBootstrap {
         */
        public static function isReachableFilePath (SplFileInfo $fileInstance) {
                // Is not reachable by default
+               //* NOISY-DEBUG: */ printf('[%s:%d]: fileInstance=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, get_class($fileInstance));
                $isReachable = false;
 
                // Get open_basedir parameter
                $openBaseDir = trim(ini_get('open_basedir'));
 
                // Is it set?
+               //* NOISY-DEBUG: */ printf('[%s:%d]: openBaseDir=%s' . PHP_EOL, __METHOD__, __LINE__, $openBaseDir);
                if (!empty($openBaseDir)) {
                        // Check all entries
                        foreach (explode(PATH_SEPARATOR, $openBaseDir) as $dir) {
                                // Check on existence
+                               //* NOISY-DEBUG: */ printf('[%s:%d]: dir=%s' . PHP_EOL, __METHOD__, __LINE__, $dir);
                                if (substr($fileInstance->getPathname(), 0, strlen($dir)) == $dir) {
                                        // Is reachable
                                        $isReachable = true;
 
                                        // Abort lookup as it has been found in open_basedir
+                                       //* NOISY-DEBUG: */ printf('[%s:%d]: BREAK!' . PHP_EOL, __METHOD__, __LINE__);
                                        break;
                                }
                        }
                } else {
                        // If open_basedir is not set, all is allowed
+                       //* NOISY-DEBUG: */ printf('[%s:%d]: All is allowed - BREAK!' . PHP_EOL, __METHOD__, __LINE__);
                        $isReachable = true;
                }
 
                // Return status
+               //* NOISY-DEBUG: */ printf('[%s:%d]: isReachable=%d - EXIT' . PHP_EOL, __METHOD__, __LINE__, intval($isReachable));
                return $isReachable;
        }