Skip to content

Commit 1db8752

Browse files
committed
Fix for 7.4
1 parent d17d395 commit 1db8752

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

phputf8/utils/bad.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function utf8_bad_identify($str, &$i)
254254
$len = strlen($str);
255255

256256
for ($i = 0; $i < $len; $i++) {
257-
$in = ord($str{$i});
257+
$in = ord($str[$i]);
258258

259259
if ($mState == 0) {
260260
// When mState is zero we expect either a US-ASCII character or a

phputf8/utils/unicode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function utf8_to_unicode($str)
3939
$len = strlen($str);
4040

4141
for ($i = 0; $i < $len; $i++) {
42-
$in = ord($str{$i});
42+
$in = ord($str[$i]);
4343

4444
if ($mState == 0) {
4545
// When mState is zero we expect either a US-ASCII character or a

0 commit comments

Comments
 (0)