From f45dadc2f86ab6de00883d4a2c9cdb720f0654d3 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 17 Jun 2026 16:59:24 +0800 Subject: [PATCH] =?UTF-8?q?test(strings):=20=E6=9B=B4=E6=96=B0=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E6=B5=8B=E8=AF=95=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?AOT=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除多个测试文件中的 --CREDITS-- 和 --SKIPIF-- 部分 - 修改 bug73817.phpt 添加缺失的输出标记 ===DONE=== - 更新 chunk_split_variation4.phpt 中的跳过条件注释并移除问题测试用例 - 修改 fprintf_error.phpt、gh18823_strict.phpt 等多个测试的跳过原因 - 在 heredoc.phpt 中添加新的基本测试用例 - 修复 implode_basic.phpt 中的函数调用参数 - 更新多个测试文件的跳过条件以更好地描述AOT限制 - 调整 str --- tests/aot/basic/heredoc.phpt | 19 +++++++++++++++ tests/std/strings/addcslashes_005.phpt | 5 ---- tests/std/strings/bug67252.phpt | 3 --- tests/std/strings/bug73817.phpt | 5 +--- tests/std/strings/chunk_split_variation4.phpt | 24 ++----------------- tests/std/strings/fprintf_error.phpt | 2 +- tests/std/strings/gh18823_strict.phpt | 2 +- tests/std/strings/gh18897.phpt | 2 +- tests/std/strings/implode_basic.phpt | 7 ++---- tests/std/strings/implode_error.phpt | 2 +- tests/std/strings/ord_not_1_byte.phpt | 2 +- tests/std/strings/parse_str_null_bytes.phpt | 2 +- tests/std/strings/pathinfo.phpt | 2 +- tests/std/strings/str_getcsv_errors.phpt | 2 +- tests/std/strings/str_pad_variation2.phpt | 10 ++------ tests/std/strings/str_repeat_variation1.phpt | 8 +++---- tests/std/strings/str_split_variation5.phpt | 2 +- tests/std/strings/strcspn_variation6.phpt | 2 +- tests/std/strings/stripos.phpt | 2 +- tests/std/strings/strpos_variation1.phpt | 2 +- tests/std/strings/strripos_variation6.phpt | 2 +- tests/std/strings/strrpos_variation14.phpt | 2 +- tests/std/strings/strspn_variation6.phpt | 2 +- tests/std/strings/strstr_variation1.phpt | 2 +- .../strings/strtr_empty_search_string.phpt | 2 +- tests/std/strings/utf8.phpt | 2 +- tests/std/strings/uuencode.phpt | 2 +- tests/std/strings/vfprintf_error1.phpt | 6 +---- 28 files changed, 49 insertions(+), 76 deletions(-) create mode 100644 tests/aot/basic/heredoc.phpt diff --git a/tests/aot/basic/heredoc.phpt b/tests/aot/basic/heredoc.phpt new file mode 100644 index 00000000..7083a758 --- /dev/null +++ b/tests/aot/basic/heredoc.phpt @@ -0,0 +1,19 @@ +--TEST-- +any +--FILE-- + +--EXPECT-- +string(45) " This checks chunk_split() +Escape +chars +" \ No newline at end of file diff --git a/tests/std/strings/addcslashes_005.phpt b/tests/std/strings/addcslashes_005.phpt index 3f498129..0b3323ba 100644 --- a/tests/std/strings/addcslashes_005.phpt +++ b/tests/std/strings/addcslashes_005.phpt @@ -1,11 +1,6 @@ --TEST-- addcslashes(); function test with warning --SKIPIF-- - ---CREDITS-- - marcosptf - -#phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05 --FILE-- --FILE-- --FILE-- -===DONE=== --EXPECT-- ===DONE=== diff --git a/tests/std/strings/chunk_split_variation4.phpt b/tests/std/strings/chunk_split_variation4.phpt index bd230956..28109feb 100644 --- a/tests/std/strings/chunk_split_variation4.phpt +++ b/tests/std/strings/chunk_split_variation4.phpt @@ -2,7 +2,7 @@ Test chunk_split() function : usage variations - different heredoc strings as 'str' argument --SKIPIF-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- diff --git a/tests/std/strings/implode_error.phpt b/tests/std/strings/implode_error.phpt index c590bcee..6b21ab76 100644 --- a/tests/std/strings/implode_error.phpt +++ b/tests/std/strings/implode_error.phpt @@ -2,7 +2,7 @@ Test implode() function: error conditions --SKIPIF-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- ---INI-- -precision=14 --FILE-- - -DONE +echo "\nDONE\n"; ?> --EXPECT-- string(10) "00ff80ea8f" diff --git a/tests/std/strings/str_repeat_variation1.phpt b/tests/std/strings/str_repeat_variation1.phpt index e9a6407d..dd0d0cb7 100644 --- a/tests/std/strings/str_repeat_variation1.phpt +++ b/tests/std/strings/str_repeat_variation1.phpt @@ -2,12 +2,11 @@ Test str_repeat() function: usage variations - complex strings containing other than 7-bit chars --SKIPIF-- ---INI-- -precision=14 --FILE-- -DONE +echo "\nDONE\n"; ?> --EXPECT-- bool(true) diff --git a/tests/std/strings/str_split_variation5.phpt b/tests/std/strings/str_split_variation5.phpt index b5fc9eb0..97825c5f 100644 --- a/tests/std/strings/str_split_variation5.phpt +++ b/tests/std/strings/str_split_variation5.phpt @@ -2,7 +2,7 @@ Test str_split() function : usage variations - different heredoc strings as 'str' argument --SKIPIF-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- ISO Latin 1 encoding/decoding test --SKIPIF-- --FILE-- --FILE-- ---CREDITS-- -Felix De Vliegher ---INI-- -precision=14 --FILE--