- 从 FuncCallOptimizer.php 中移除了 'reset' 和 'end' 函数 - 删除了相关的类型错误测试文件 reset_end_type_error.phpt - 更新了优化器中的函数列表配置pull/1/head
parent
cd3f0743d7
commit
0c7464b4b3
2 changed files with 0 additions and 18 deletions
@ -1,17 +0,0 @@ |
||||
--TEST-- |
||||
reset/end: TypeError for non-array |
||||
--FILE-- |
||||
<?php |
||||
$str = "hello"; |
||||
try { reset($str); } catch (TypeError $e) { echo $e->getMessage() . "\n"; } |
||||
$int = 42; |
||||
try { end($int); } catch (TypeError $e) { echo $e->getMessage() . "\n"; } |
||||
$arr = ["a" => 1, "b" => 2]; |
||||
var_dump(reset($arr)); |
||||
var_dump(end($arr)); |
||||
?> |
||||
--EXPECT-- |
||||
reset(): Argument #1 ($array) must be of type array |
||||
end(): Argument #1 ($array) must be of type array |
||||
int(1) |
||||
int(2) |
||||
Loading…
Reference in new issue