Skip to content

Commit

Permalink
Don't use deprecated curly brace offset syntax
Browse files Browse the repository at this point in the history
(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.
  • Loading branch information
cmb69 committed Jul 7, 2020
1 parent 64931fd commit f23bd48
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 f23bd48

Please sign in to comment.