mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
PHP 7.4.21 fixes part 2
This commit is contained in:
parent
e93e81222a
commit
7877b4fe94
10 changed files with 23 additions and 23 deletions
|
|
@ -265,7 +265,7 @@ class Utils{
|
|||
public static function readDataArray($str, $len = 10, &$offset = null){
|
||||
$data = array();
|
||||
$offset = 0;
|
||||
for($i = 1; $i <= $len and isset($str{$offset}); ++$i){
|
||||
for($i = 1; $i <= $len and isset($str[$offset]); ++$i){
|
||||
$l = Utils::readTriad(substr($str, $offset, 3));
|
||||
$offset += 3;
|
||||
$data[] = substr($str, $offset, $l);
|
||||
|
|
@ -290,7 +290,7 @@ class Utils{
|
|||
$secureValue = "";
|
||||
$rounds = 0;
|
||||
$drop = 0;
|
||||
while(!isset($output{$length - 1})){
|
||||
while(!isset($output[$length - 1])){
|
||||
//some entropy, but works ^^
|
||||
$weakEntropy = array(
|
||||
is_array($startEntropy) ? implode($startEntropy):$startEntropy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue