Dear list,
I recently ran into big problems with crc32() and ip2long() both of which I
was using in the same codebase.
I know these issues have been debated at length in the past, but this
really needs to be fixed.
Anytime you persist these values (to any external medium, files or
databases) you
I've patched original crc32 PHP function to allow incremental crc32
counting.
It touches only a few lines of original code.
New crc32 function signature is
int crc32(string str [,int prev_sum])
With this patch you can generate crc32 checksum for even large files
without reading it contents
crc32, md5 and sha1 functions, implemented in PHP, are widely used for
computing "fingerprint" of any data. But current implementation has not very
good limitation - there is no way to get/set current state vector of these
functions. So, we have to pass whole amount of data as argument of these
fun
On Sun, 13 Jun 2004 23:10:04 +, Curt Zirzow <[EMAIL PROTECTED]> wrote:
* Thus wrote Alexander Valyalkin ([EMAIL PROTECTED]):
Here is improved version of crc32() function.
Features:
1) Automatic initialization of crc32tab[] at first call.
So, the file crc32.h with definition of this tab is no
* Thus wrote Alexander Valyalkin ([EMAIL PROTECTED]):
> Here is improved version of crc32() function.
> Features:
> 1) Automatic initialization of crc32tab[] at first call.
>So, the file crc32.h with definition of this tab is not
>nessesary any more now.
I'm not sure what advantage this is
Here is improved version of crc32() function.
Features:
1) Automatic initialization of crc32tab[] at first call.
So, the file crc32.h with definition of this tab is not
nessesary any more now.
2) Speed is improved on large amount of data.
3) Less source size. Current verison has near 6.5Kb le