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 ?

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

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 ?

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70