- 在 AstNodeType 中添加 isPlaceholderExpr 方法用于检测占位符表达式 - 在 CompilerBase 中添加对函数调用占位符的特殊处理逻辑 - 使用 isPlaceholderExpr 替换直接的类型检查以统一占位符判断 - 在 C++ 层面实现 php_switch_scope 和 php_restore_scope 功能 - 在 PlaceHolderGenerator 中添加作用域切换代码生成逻辑 - 添加新的测试用例验证静态方法占位符调用功能pull/1/head
parent
afc4ef87f8
commit
c259d20562
6 changed files with 62 additions and 2 deletions
@ -0,0 +1,24 @@ |
|||||||
|
--TEST-- |
||||||
|
Static Class Property Read/Write Test |
||||||
|
--FILE-- |
||||||
|
<?php |
||||||
|
class Worker |
||||||
|
{ |
||||||
|
protected static function checkErrors(): void |
||||||
|
{ |
||||||
|
var_dump(__METHOD__); |
||||||
|
} |
||||||
|
|
||||||
|
public static function init() |
||||||
|
{ |
||||||
|
$fn = self::checkErrors(...); |
||||||
|
$fn(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
function main() { |
||||||
|
Worker::init(); |
||||||
|
} |
||||||
|
?> |
||||||
|
--EXPECT-- |
||||||
|
string(19) "Worker::checkErrors" |
||||||
Loading…
Reference in new issue