note 25564 added to function.crc32
| From: | m2pc at hotmail dot com | Date: | Fri, 27 Sep 2002 19:46:54 +0000 |
| Subject: | note 25564 added to function.crc32 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37341@lists.php.net to get a copy of this message | ||
The crc16 function above does not work as written (I kept getting 0 for all strings!);
You need to replace the line which reads:
return $crcstr;
<br>
With:
return $crc;
--
http://www.php.net/manual/en/function.crc32.php
http://master.php.net/manage/user-notes.php?action=edit+25564
http://master.php.net/manage/user-notes.php?action=delete+25564
http://master.php.net/manage/user-notes.php?action=reject+25564