Skip to content

Commit

Permalink
Merge branch 'PHP-7.4'
Browse files Browse the repository at this point in the history
* PHP-7.4:
  Don't use deprecated curly brace offset syntax
  • Loading branch information
cmb69 committed Jul 7, 2020
2 parents 2c73bf7 + 7ec3aa1 commit af32f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win32/build/mkdist.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ function extract_file_from_tarball($pkg, $filename, $dest_dir) /* {{{ */
break;
$checksum = 0;
for ($i = 0; $i < 148; $i++)
$checksum += ord($hdr_data{$i});
$checksum += ord($hdr_data[$i]);
for ($i = 148; $i < 156; $i++)
$checksum += 32;
for ($i = 156; $i < 512; $i++)
$checksum += ord($hdr_data{$i});
$checksum += ord($hdr_data[$i]);

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

Expand Down

0 comments on commit af32f96

Please sign in to comment.