note 14186 added to function.crc32.php
| From: | paj at pajhome dot org dot uk | Date: | Fri, 20 Jul 2001 16:20:25 +0000 |
| Subject: | note 14186 added to function.crc32.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15615@lists.php.net to get a copy of this message | ||
Some quick reverse engineering shows they're using the standard CRC32 parameters:
Polynomial 0x04C11DB7l
Initial register value 0xFFFFFFFF
Register is inverted at end of calculation
Bytes are reflected as they come in, and the result is reflected before it is returned.
The documentation says this function returns the CRC polynomial of the string - that's a little
misleading IMHO. I'd say it simply returns the CRC of the string. The polynomial is a magic
number in the calculation.
http://www.php.net/manual/en/function.crc32.php