Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29370 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14893 invoked by uid 1010); 9 May 2007 08:51:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14878 invoked from network); 9 May 2007 08:51:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2007 08:51:09 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 66.249.82.235 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 66.249.82.235 wx-out-0506.google.com Linux 2.4/2.6 Received: from [66.249.82.235] ([66.249.82.235:53725] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/69-30551-C7B81464 for ; Wed, 09 May 2007 04:51:09 -0400 Received: by wx-out-0506.google.com with SMTP id i27so128352wxd for ; Wed, 09 May 2007 01:51:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T04OT0RLDz+W6QP0jmbn6GoGEI3zX9/GneCWVduT1AZsAcCFEf4Sbfo/K2eyLYVVj5K37l1ueorGegng7MrZkSDTdqEGq0NwtX16kxfgJRMm94JltkvnupvMt7rpG0D7kK2Llz+n/jjsI3I54POYbwNmR8PyHHHMvdelouACANk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iJ0tQOWv8y1jepvAatoWySiZWs0M51H+V16g1Yl9rrs2hglAJkIG6LZYH/4pscRExoITh+kbB3dxI8RykVHKLJfbfx9RCZIB8xljczQyzCaZ9JkVTJtbD4MXiKTRQl28NhseGzoef9SIH2kFH9x9/qcGIbHWFpoQvSD+RgBFD5M= Received: by 10.78.204.7 with SMTP id b7mr30682hug.1178700663343; Wed, 09 May 2007 01:51:03 -0700 (PDT) Received: by 10.78.48.15 with HTTP; Wed, 9 May 2007 01:51:03 -0700 (PDT) Message-ID: <10845a340705090151t7b80e3f8i10e4a8e787ba773@mail.gmail.com> Date: Wed, 9 May 2007 09:51:03 +0100 Reply-To: RQuadling@GoogleMail.com To: ceo@l-i-e.com Cc: "David Santinoli" , "Sara Golemon" , internals@lists.php.net In-Reply-To: <42251.216.230.84.67.1178646436.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070507110833.GA27937@aidi.santinoli.com> <3668.209.254.223.2.1178573428.squirrel@www.l-i-e.com> <463FD459.9050801@php.net> <20070508141302.GB8126@aidi.santinoli.com> <42251.216.230.84.67.1178646436.squirrel@www.l-i-e.com> Subject: Re: [PHP-DEV] [PATCH] Passthrough MD5/SHA1 calculation of uploaded files From: rquadling@googlemail.com ("Richard Quadling") On 08/05/07, Richard Lynch wrote: > On Tue, May 8, 2007 9:13 am, David Santinoli wrote: > > If there's enough interest in this, I will rework the patch according > > to > > Sara's hint. > > I'd have to be +1 on making more than just the 2 hashes available for > this feature, though if it's a *TON* of work... > Could the result be ... $_FILES[userfile]["hash"]["md5"] / $_FILES[userfile]["hash"]["sha1"] If you SOMEHOW didn't know what hash had been asked for, you would have to go through a list to find the one saved in $_FILES. Using a key for "hash", you know which hash a lot easier. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"