From ebf4c9d1cb998aae15e64b0b65161d07d134a091 Mon Sep 17 00:00:00 2001 From: Yurun Date: Tue, 16 Jun 2026 19:51:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(php):=20=E4=BF=AE=E5=A4=8D=200LL=20?= =?UTF-8?q?=E5=AD=97=E9=9D=A2=E9=87=8F=E5=9C=A8=20Windows=E5=92=8C=20MacOS?= =?UTF-8?q?=20=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Php/CompilerBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Php/CompilerBase.php b/src/Php/CompilerBase.php index d9c416af..6edaf650 100644 --- a/src/Php/CompilerBase.php +++ b/src/Php/CompilerBase.php @@ -1168,7 +1168,7 @@ class CompilerBase extends \PhpAot\Core\Translator $key = $this->parseIdentifier($expr); if (str_starts_with($key, self::LITERAL_STRINGS)) { $key = "{$key}.str()"; - } elseif ($key === '0L') { + } elseif ($key === '0L' || $key === '0LL') { // 0 在 C++ 中是一个特殊的值,存在二义性,既是空指针,也是整数,这会导致产生 ambiguous 错误 // 必须转为 php::zero 常量,保证作为 key 时正确匹配到 IntKeyMap $key = self::VALUE_ZERO;