From 918a52d7fb2866570154f4cd2488b126e5a84442 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Mon, 29 Jun 2026 14:01:25 +0800 Subject: [PATCH] =?UTF-8?q?test(samples):=20=E6=B7=BB=E5=8A=A0=E6=96=B0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E5=92=8C=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 tests/aot/class/new-and-call.phpt 测试文件,验证 new 和 call 操作 - 添加 samples/script.php 示例文件,演示 PHP_OS 函数使用 - 实现了类实例化后直接调用方法的测试场景 - 创建 --- samples/script.php | 5 +++++ tests/aot/class/new-and-call.phpt | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 samples/script.php create mode 100644 tests/aot/class/new-and-call.phpt diff --git a/samples/script.php b/samples/script.php new file mode 100644 index 00000000..fd125df1 --- /dev/null +++ b/samples/script.php @@ -0,0 +1,5 @@ +bar('world'); + echo "done\n"; +} + +?> +--EXPECT-- +string(12) "hello world!" +done \ No newline at end of file