md5_file
Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Calculates the md5 hash of a given file
md5_file
(
string $filename
,
bool $binary
=
false
):
string
|
false
laravel/framework
public function
hash
(
$path
)
{
return
md5_file
(
$path
);
}
src/Illuminate/Filesystem/Filesystem.php
laravel/framework
public function
hasSameHash
(
$firstFile
,
$secondFile
)
{
$hash
= @
md5_file
(
$firstFile
);
return
$hash
&&
$hash
=== @
md5_file
(
$secondFile
);
}
src/Illuminate/Filesystem/Filesystem.php
laravel/framework
{
$hash
= @
md5_file
(
$firstFile
);
return
$hash
&&
$hash
=== @
md5_file
(
$secondFile
);
}
src/Illuminate/Filesystem/Filesystem.php
composer/composer
return
false
;
}
} elseif (
is_file
(
$dir
.
'/'
.
$file
) &&
filesize
(
$dir
.
'/'
.
$file
)) {
$array
[
$dir
][
$file
] =
md5_file
(
$dir
.
'/'
.
$file
);
}
}
}
src/Composer/Package/Comparer/Comparer.php