- 新增 isRefvalCall 方法检测 refval 函数调用 - 在编译器中添加对 refval 函数的特殊处理逻辑 - 实现 refval 函数调用的参数解析和优化 - 添加 refval 函数的 polyfill 实现 - 在 stub 生成中使用 refval 包装声明字符串 - 添加 refval 函数的测试用例pull/1/head
parent
10a66b1c31
commit
799aa629c0
6 changed files with 39 additions and 1 deletions
@ -0,0 +1,16 @@ |
||||
--TEST-- |
||||
refval |
||||
--FILE-- |
||||
<?php |
||||
function retval_test(&$name) { |
||||
$name .= "refval test"; |
||||
} |
||||
function main() |
||||
{ |
||||
$name = 'php '; |
||||
retval_test(refval($name)); |
||||
echo $name; |
||||
} |
||||
?> |
||||
--EXPECT-- |
||||
php refval test |
||||
Loading…
Reference in new issue