- 实现字符串类型的数组维度获取解析功能 - 添加字符串索引赋值的类型检测和错误处理 - 支持字符串的 offsetSet 操作转换 - 新增字符串数组索引赋值的功能测试用例 - 处理字符串索引为 null 时的错误情况 - 实现字符串变量类型检查机制pull/1/head
parent
8257f8a1c4
commit
2d81a3975d
2 changed files with 26 additions and 0 deletions
@ -0,0 +1,12 @@ |
||||
--TEST-- |
||||
strlen |
||||
--FILE-- |
||||
<?php |
||||
$s1 = "hello world"; |
||||
$s2 = "php"; |
||||
$s1[1] = $s2[1] = '_'; |
||||
var_dump($s1, $s2); |
||||
?> |
||||
--EXPECT-- |
||||
string(11) "h_llo world" |
||||
string(3) "p_p" |
||||
Loading…
Reference in new issue