From b11a6630fea1747c2e54f2870e2ff768c656f923 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Mon, 25 May 2026 10:50:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Php/Translator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Php/Translator.php b/src/Php/Translator.php index 957368ad..4fb80406 100644 --- a/src/Php/Translator.php +++ b/src/Php/Translator.php @@ -285,6 +285,7 @@ class Translator extends Preprocessor public function prepare(string $path): array { + // 预先添加一些函数符号,在编译阶段部分语法会转为函数调用 $this->funcSymbols['shell_exec'] = $this->getFuncPtr('shell_exec'); $this->funcSymbols['define'] = $this->getFuncPtr('define');