Re: crc32
| From: | Sara Golemon | Date: | Tue, 06 Sep 2005 13:57:38 +0000 |
| Subject: | Re: crc32 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18692@lists.php.net to get a copy of this message | ||
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"" <r.korving@xit.nl>
Newsgroups: php.internals
To: <internals@lists.php.net>
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" <wmeler@wp.pl> 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