X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AB63CD1E5DF for ; Thu, 29 Apr 2004 05:56:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 42138-10 for ; Thu, 29 Apr 2004 05:56:14 -0300 (ADT) Received: from smtp.lewczuk.com (118.224.149.195.tld.pl [195.149.224.118]) by svr1.postgresql.org (Postfix) with SMTP id 888E6D1E5C9 for ; Thu, 29 Apr 2004 05:56:10 -0300 (ADT) Received: (qmail 20726 invoked by uid 700); 29 Apr 2004 08:49:32 -0000 Received: from linux.samar.pl (HELO lewczuk.com) (marek@lewczuk.com@62.233.139.198) by 118.224.149.195.tld.pl with SMTP; 29 Apr 2004 08:49:32 -0000 Message-ID: <4090CFB5.5030809@lewczuk.com> Date: Thu, 29 Apr 2004 10:49:41 +0100 From: Marek Lewczuk User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-php@postgresql.org, joolz@xs4all.nl Subject: Re: MD5 in pg and php References: <20040429070716.GA6918@localhost.localdomain> <4090BD52.9060708@lewczuk.com> <20040429081530.GA8282@localhost.localdomain> In-Reply-To: <20040429081530.GA8282@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/56 X-Sequence-Number: 2713 Joolz wrote: >>[Marek Lewczuk schreef op 29-04-2004 09:31 +0100] >> > Thanks, I already found some fc1 rpm's (still in development). But can > anyone tell me if the 7.4 internal md5() function will do the same as > the PHP md5() function? Or do a quick select md5('apple') and let me > know if the result is 'ae6d32585ecc4d33cb8cd68a047d8434'? > > I really wouldn't like to upgrade from my current stable situation, > only to find out that it didn't solve my original problem. > > TIA! > I have 7.4.1 version and "select md5('apple')" returns: 1f3870be274f6c49b3e31a0c6728957f But I have checked in my PHP 4.3 what will return md5('apple') and: 1f3870be274f6c49b3e31a0c6728957f So as you see there are the same - but they are different from your result.