From f63084f8d4ecd1c79b3a3ee5d7e34d656470d6da Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Sat, 20 Jun 2026 19:26:51 +0800 Subject: [PATCH] =?UTF-8?q?test(aot):=20=E6=B7=BB=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E4=B8=ADnull=E4=BD=9C=E4=B8=BA=E9=94=AE=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建了null作为数组键的测试文件 - 验证了多个null键值对的处理逻辑 - 确认了数组索引从0开始的预期行为 - 测试了字符串值的正确赋值功能 --- tests/aot/array/null-as-key.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/aot/array/null-as-key.phpt diff --git a/tests/aot/array/null-as-key.phpt b/tests/aot/array/null-as-key.phpt new file mode 100644 index 00000000..f4e4a9e9 --- /dev/null +++ b/tests/aot/array/null-as-key.phpt @@ -0,0 +1,17 @@ +--TEST-- +Array 001 +--FILE-- + 'v1', + null => 'v2', +); +var_dump($inputs); +?> +--EXPECT-- +array(2) { + [0]=> + string(2) "v1" + [1]=> + string(2) "v2" +} \ No newline at end of file