]> git.mxchange.org Git - friendica.git/commitdiff
Adapt doc
authorPhilipp <admin@philipp.info>
Fri, 6 Jan 2023 11:47:00 +0000 (12:47 +0100)
committerPhilipp <admin@philipp.info>
Fri, 6 Jan 2023 11:47:00 +0000 (12:47 +0100)
src/Core/Config/Util/ConfigFileManager.php

index 3a4ebb89319d5d48309f4707dd7597d90c70b908..f9d3b32b64c48c267c63a0a73ccb131f2b789448 100644 (file)
@@ -203,11 +203,12 @@ class ConfigFileManager
                        }
 
                        /**
-                        * Evaluate the fetched content
+                        * Evaluate the content string as PHP code
+                        *
+                        * @see https://www.php.net/manual/en/function.eval.php
                         *
                         * @note
-                        * Because `eval()` directly evaluates PHP content, we need to "close" the expected PHP content again with
-                        * the prefixed "?>". Now we're in plain HTML again and can evaluate any PHP file :-)
+                        * To leave the PHP mode, we have to use the appropriate PHP tags '?>' as prefix.
                         */
                        $dataArray = eval('?>' . $content);