From a4af1b294c48ae8a9bb9235980fb31403bb13841 Mon Sep 17 00:00:00 2001 From: NathanFreeman <1056159381@qq.com> Date: Thu, 30 Jul 2026 21:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Translator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Translator.php b/src/Translator.php index 68dd1486..a667a0cc 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -3243,7 +3243,8 @@ CODE; */ private function registerServerEnvironment(string $scriptName): string { - $cppCode = 'php::Var &_SERVER = _global_var__SERVER;' . PHP_EOL;; + $cppCode = PHP_EOL; + $cppCode .= 'php::Var &_SERVER = _global_var__SERVER;' . PHP_EOL;; $cppCode .= 'php::Str value =' . $scriptName . ';' . PHP_EOL; $cppCode .= '_SERVER.item("PHP_SELF", true) = value;' . PHP_EOL;