Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75544 invoked by uid 1010); 6 Sep 2005 11:53:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75529 invoked from network); 6 Sep 2005 11:53:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2005 11:53:33 -0000 X-Host-Fingerprint: 195.225.34.5 unknown Received: from ([195.225.34.5:20046] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 65/D8-33268-D338D134 for ; Tue, 06 Sep 2005 07:53:33 -0400 Message-ID: <65.D8.33268.D338D134@pb1.pair.com> To: internals@lists.php.net References: <431C2738.2040602@wp.pl> <67.D1.33268.C615C134@pb1.pair.com> <431D3B3D.3050607@wp.pl> Date: Tue, 6 Sep 2005 13:48:42 +0200 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 195.225.34.5 Subject: Re: crc32 From: r.korving@xit.nl ("Ron Korving") 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