Re: md5sum() patch

From: Date: Thu, 15 Nov 2001 20:16:10 +0000
Subject: Re: md5sum() patch
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-70599@lists.php.net to get a copy of this message
On Thu, Nov 15, 2001 at 03:08:00PM -0500, Joao Prado Maia wrote : > > On Thu, 15 Nov 2001, Markus Fischer wrote: > > > $m45sum = md5_file($f); > > > ^^^^^^^^^^^^ > I guess you probably meant this: > > $md5sum = md5_file('filename'); No. I refered to Hartmut who suggested: H> if given a string -> current behavior H> if given a file handle resource -> read file and return sum So $f = fopen('filename'); $md5sum = md5($f); fclose($f); actually would be what he wanted. Looks .. odd to me ;) - Markus

« previous php.dev (#70599) next »