- 修复数组类型变量重新赋值检查逻辑,排除VAR类型 - 优化错误消息格式,移除多余的空格 - 为unset操作添加未定义变量检查 - 为unset操作添加不支持类型的操作数错误处理 - 添加未定义变量测试用例 - 添加不支持的unset类型测试用例pull/1/head
parent
9f52d48770
commit
cfcbfcdb2f
4 changed files with 26 additions and 3 deletions
@ -0,0 +1,5 @@ |
|||||||
|
<?php |
||||||
|
function main() |
||||||
|
{ |
||||||
|
unset($u1, $u2); |
||||||
|
} |
||||||
@ -0,0 +1,5 @@ |
|||||||
|
<?php |
||||||
|
function main() |
||||||
|
{ |
||||||
|
unset(var_dump('1')); |
||||||
|
} |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
class UndefineTest extends \BaseTest |
||||||
|
{ |
||||||
|
public function testUnset() |
||||||
|
{ |
||||||
|
$this->exec('The variable `$u1` is undefined', 'undefined-vars-01.php'); |
||||||
|
$this->exec('Unsupported unset type `Expr_FuncCall`', 'unset-01.php'); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue