Merge pull request #412 from ljcbaby/patch-1

PHP74兼容性问题
pull/479/head
warlee 2021-04-07 18:50:29 +08:00 committed by GitHub
commit 56a94cfbc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1036,4 +1036,4 @@ function pkcs5_unpad($text){
function pkcs5_pad($text, $block = 8){ function pkcs5_pad($text, $block = 8){
$pad = $block - (strlen($text) % $block); $pad = $block - (strlen($text) % $block);
return $text . str_repeat(chr($pad), $pad); return $text . str_repeat(chr($pad), $pad);
} }