|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-11 21:43 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ I've noticed a really confusing fact. MD5_file and shell md5sum gives different checksums in some cases. I've written a complete file integrity check in php. O was using md5sum from shell to calcullate md5 checksums. After switching to md5_file i've got allerts in some files. So I made some test, and found, that in some cases md5sum and md5_file gives different output !!! on my /usr/lib directory I've got 6 differences. Reproduce code: --------------- shell_exec("/usr/bin/md5sum $currentfile"); md5_file($currentfile);