Topic: md5 issue php 5.6

Is there a known issue with md5_file function on php 5.6?
If so, how can this be fixed?

We are receiving a warning when trying to check the md5 on a file that has been transferred.

We have another server running php 5.5.38 and it works.  php 5.6 breaks.

Thanks!

Re: md5 issue php 5.6

Have you a small reproducer ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: md5 issue php 5.6

$ php56 -r '
echo md5_file(PHP_BINARY) . "\n";
passthru("md5sum ". PHP_BINARY);
'
8b31530f9364e19059014eb82ae39570
8b31530f9364e19059014eb82ae39570  /opt/remi/php56/root/usr/bin/php

BTW, you are of course aware that MD5 is unsecure ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi