Skip to content

Commit f23bd48

Browse files
committed
Don't use deprecated curly brace offset syntax
(cherry picked from commit 7ec3aa1) Better safe than sorry in case someone ever builds PHP 7.3 with a future version of PHP SDK with bundled PHP 8.
1 parent 64931fd commit f23bd48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

win32/build/mkdist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ function extract_file_from_tarball($pkg, $filename, $dest_dir) /* {{{ */
185185
break;
186186
$checksum = 0;
187187
for ($i = 0; $i < 148; $i++)
188-
$checksum += ord($hdr_data{$i});
188+
$checksum += ord($hdr_data[$i]);
189189
for ($i = 148; $i < 156; $i++)
190190
$checksum += 32;
191191
for ($i = 156; $i < 512; $i++)
192-
$checksum += ord($hdr_data{$i});
192+
$checksum += ord($hdr_data[$i]);
193193

194194
$hdr = unpack("a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor", $hdr_data);
195195

0 commit comments

Comments
 (0)