韩天峰
fd085c10d0
feat(compiler): add support for embedded NUL bytes in string literals
...
- Replace noLiteralString handling with getInlineString method
- Add getInlineString function to generate PHP strings without literal table
- Use ZEND_STRL to preserve string length with embedded NULs
- Update scalar parsing to use getInlineString for noLiteralString case
- Add test case for embedded null string handling
- Remove skip condition for trim tests related to embedded nulls
2 months ago
Yurun
bbc9ab61a4
fix(tests): 更新测试预期与改进跨平台兼容性
2 months ago
韩天峰
0c9a449536
test(array): 添加数组函数测试用例
2 months ago
韩天峰
cba9990e80
refactor(parser): 重构零值字面量检测逻辑
...
- 将 isZeroLiteral 方法从 BinaryOpTrait 移动到 CompilerBase 类中
- 为 isZeroLiteral 方法添加详细的文档注释说明其用途
- 添加 targetPlatform 配置选项支持交叉编译目标平台
- 修复对象属性测试用例中的数组索引访问功能
- 在 array_sum 和 array_product 测试中添加错误报告控制
2 months ago
韩天峰
f45dadc2f8
test(strings): 更新字符串测试以支持AOT编译
...
- 移除多个测试文件中的 --CREDITS-- 和 --SKIPIF-- 部分
- 修改 bug73817.phpt 添加缺失的输出标记 ===DONE===
- 更新 chunk_split_variation4.phpt 中的跳过条件注释并移除问题测试用例
- 修改 fprintf_error.phpt、gh18823_strict.phpt 等多个测试的跳过原因
- 在 heredoc.phpt 中添加新的基本测试用例
- 修复 implode_basic.phpt 中的函数调用参数
- 更新多个测试文件的跳过条件以更好地描述AOT限制
- 调整 str
2 months ago
韩天峰
ed9462bb49
chore(tests): 移除字符串函数测试中的AOT限制跳过条件
...
- 移除多个字符串函数测试文件中的 skip AOT limitation 条件
- 在005.phpt中将INI设置移至FILE部分并使用ini_set函数
- 更新addcslashes_005.phpt中的错误输出格式
- 修改bug67252.phpt中跳过条件的注释方式
- 调整bug68710.phpt和bug72663_2.phpt中的完成标记输出
- 移除trim相关
2 months ago
韩天峰
10fd8fe0ce
add string tests
2 months ago
韩天峰
581be13a8f
test(stdlib): 添加新标准库函数测试用例
...
- 测试 gettype 函数对不同数据类型的返回值
- 验证 ucfirst 函数首字母大写功能
- 检查 floor 和 ceil 数学函数的正确性
- 测试 max 和 min 函数的数值比较功能
- 验证 uniqid 函数生成唯一标识符的能力
- 测试
3 months ago
韩天峰
71cd8daad1
test(stdlib): 添加新标准库函数测试用例
...
- 测试 gettype 函数对不同数据类型的返回值
- 验证 ucfirst 函数首字母大写功能
- 检查 floor 和 ceil 数学函数的正确性
- 测试 max 和 min 函数的数值比较功能
- 验证 uniqid 函数生成唯一标识符的能力
- 测试 reset 和 end 数组指针操作函数
-
3 months ago
韩天峰
549052df05
test(core): 添加核心函数测试用例
...
- 新增数组函数测试包括in_array、array_search、array_key_exists、array_keys、array_values
- 添加日期时间函数测试涵盖time、date、strtotime功能验证
- 实现字符串函数测试包含dirname、basename、strtr方法校验
- 集成文件系统和数学函数测试覆盖is_dir、is_file、round功能
- 增加杂项函数测试验证md5、version_compare、print_r行为
3 months ago
韩天峰
4a38508411
test(core): 添加字符串比较和类检查函数的测试用例
...
- 添加 strcmp、strncmp、strcasecmp、strncasecmp 字符串比较函数测试
- 添加 class_exists、interface_exists、trait_exists、enum_exists 类存在性检查函数测试
- 添加 method_exists、property_exists 方法和属性存在性检查函数测试
- 添加 is_a、is_subclass_of 类型检查函数测试
- 添加 defined 常量定义检查函数测试
- 添加 get_parent_class 获取父类函数测试
3 months ago
韩天峰
7ae7e12ad8
增加标准库单测文件
8 months ago
韩天峰
16787142d6
修复错误,增加单测
8 months ago
韩天峰
0033a243d0
添加更多测试,php std 标准库测试,支持 list 语法
8 months ago
韩天峰
a54b04118d
支持错误抑制操作符,但仅支持控制一个函数
8 months ago