From 436e09f6ae451d38f9f2a963bedbe5f9a4176a69 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 6 May 2026 11:38:16 +0800 Subject: [PATCH] =?UTF-8?q?chore(deps):=20=E6=9B=B4=E6=96=B0=20swoole/phpx?= =?UTF-8?q?=20=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 swoole/phpx 从 ~2.1.3 更新到 ~2.1.5 - 添加动态调用方法测试用例 method-002.phpt - 新增命名参数调用功能的测试验证 - 添加对象动态方法调用的相关测试代码 --- composer.json | 2 +- tests/aot/dynamic_call/method-002.phpt | 32 ++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/aot/dynamic_call/method-002.phpt diff --git a/composer.json b/composer.json index d8a9f3a5..1a64d7a9 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "marcj/topsort": "^2.0", "symfony/var-dumper": "^8.0", "symfony/yaml": "^8.0", - "swoole/phpx": "~2.1.3" + "swoole/phpx": "~2.1.5" }, "require-dev": { "phpunit/phpunit": "^10.4", diff --git a/tests/aot/dynamic_call/method-002.phpt b/tests/aot/dynamic_call/method-002.phpt new file mode 100644 index 00000000..20101f1e --- /dev/null +++ b/tests/aot/dynamic_call/method-002.phpt @@ -0,0 +1,32 @@ +--TEST-- +named args +--FILE-- +{$array['handler']}([2026, 'ae86', 'bmw']); + } +} + +function main() +{ + $object = new FooObject; + $object->run(); +} +?> +--EXPECT-- +array(3) { + [0]=> + int(2026) + [1]=> + string(4) "ae86" + [2]=> + string(3) "bmw" +}