PMCORE-3844
This commit is contained in:
4
thirdparty/phing/util/StringHelper.php
vendored
4
thirdparty/phing/util/StringHelper.php
vendored
@@ -60,7 +60,7 @@ class StringHelper {
|
||||
$ret=array();
|
||||
$len=strlen($str);
|
||||
for ($i=0; $i < $len; $i++) {
|
||||
$ret[] = $str{$i};
|
||||
$ret[] = $str[$i];
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ class StringHelper {
|
||||
trigger_error("substring(), Endindex out of bounds must be $startpos<n<".($len-1), E_USER_ERROR);
|
||||
}
|
||||
if ($startpos === $endpos) {
|
||||
return (string) $string{$startpos};
|
||||
return (string) $string[$startpos];
|
||||
} else {
|
||||
$len = $endpos-$startpos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user