Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18692 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43059 invoked by uid 1010); 6 Sep 2005 13:58:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43044 invoked from network); 6 Sep 2005 13:58:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2005 13:58:01 -0000 X-Host-Fingerprint: 69.12.155.130 69-12-155-130.dsl.static.sonic.net Linux 2.4/2.6 Received: from ([69.12.155.130:4622] helo=pigeon.alphaweb.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id EC/11-33268-960AD134 for ; Tue, 06 Sep 2005 09:58:01 -0400 Received: from localhost ([127.0.0.1] helo=lighthammer) by pigeon.alphaweb.net with smtp (Exim 4.10) id 1ECdJ8-0004sz-00; Tue, 06 Sep 2005 06:16:14 -0700 Message-ID: <002401c5b2ea$fd593320$6c051fac@lighthammer> To: "\"Ron Korving\"" Cc: References: <431C2738.2040602@wp.pl> <67.D1.33268.C615C134@pb1.pair.com> <431D3B3D.3050607@wp.pl> <65.D8.33268.D338D134@pb1.pair.com> Date: Tue, 6 Sep 2005 06:57:38 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: crc32 From: pollita@php.net ("Sara Golemon") I'd suggest a set of filters as an add-on to the mhash extension: mhash.crc32 mhash.md5 mhash.sha1 mhash.sha256 etc.... -Sara ----- Original Message ----- From: ""Ron Korving"" Newsgroups: php.internals To: Sent: Tuesday, September 06, 2005 4:48 AM Subject: Re: crc32 > With a crc function the way you propose it, such a filter could be > effectively made in userspace, but you could of course also implement such > a > filter in the core of php which could do the same trick. Maybe both would > be > nice. > > Ron > > > "Wojtek Meler" schreef in bericht > news:431D3B3D.3050607@wp.pl... >> Ron Korving wrote: >> > Wouldn't it be more practical to implement these as stream filters? >> >> Sure - I was not aware PHP5 streams - I'm still using PHP4 >> string.base64 is good choice. But I'm not sure if crc fit to streams. >> You can always implement fast userland filter with such function ;) . >> >> >> Wojtek