韩天峰
27aa8ea930
feat(ext): update extension code and add ctype example
...
- Replace direct function calls with call() wrapper in ext.cc
- Remove unused php_func.h include
- Add new ctype/main.php example with isAsciiWhitespace function
- Implement proper parameter validation for ASCII range checking
- Add main function to demonstrate ctype space detection usage
10 hours ago
韩天峰
b8516b6ac0
fix(php): 修复存根文件函数返回类型检查和类方法处理逻辑
...
- 修复存根文件中魔术方法(__construct/__destruct/__clone)不需要声明返回类型的问题
- 在FunctionDef构造函数中添加stub参数传递
- 修正main函数参数类型检查逻辑,添加逻辑非运算符
- 移除类方法中重复的'this_'参数添加,在stub函数处理后重新添加
- 添加stub函数的特殊处理逻辑,无具体实现时重置函数定义
- 修复类方法名称处理中的变量引用问题
5 months ago
韩天峰
ca4a34204c
feat(compiler): 添加对 main 函数的特殊支持和参数验证
...
- 在编译器中实现 main 函数的特殊处理逻辑
- 验证 main 函数的参数必须为 (int $argc, array $argv) 格式
- 确保 main 函数返回类型为 void
- 在扩展模板中添加 main 函数调用支持
- 根据构建模式条件编译模块入口点
- 移除旧的静态 main 函数调用方式
- 更新示例项目以使用正确的 main 函数签名
7 months ago
韩天峰
a085c33208
refactor(Php): 优化 MagicConst 和 Foreach 语句解析
...
- 修复 MagicConst 解析函数的类型声明
- 修复 Line 常量解析的返回值类型转换
- 修复 Foreach 语句解析函数的类型声明
- 更新 PhpParser 导入以支持 MagicConst 和 Foreach_ 节点类型
8 months ago
韩天峰
1036317e74
Update
8 months ago
韩天峰
ba3ffd885f
支持 C++ Native 函数注入,stub 存根文件
8 months ago