PHP8: new str_* function

This commit is contained in:
Sunch 2024-08-17 20:11:55 +08:00
parent 69385e16f2
commit 1275a4558c
7 changed files with 15 additions and 15 deletions

View file

@ -120,7 +120,7 @@ $inc = get_included_files();
$inc[] = array_shift($inc);
$srcdir = realpath(FILE_PATH . "src/");
foreach($inc as $s){
if(strpos(realpath(dirname($s)), $srcdir) === false and strtolower(basename($s)) !== "pocketmine-mp.php"){
if(!str_contains(realpath(dirname($s)), $srcdir) and strtolower(basename($s)) !== "pocketmine-mp.php"){
continue;
}
$sha1sum ^= sha1_file($s, true);