|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-26 13:53 UTC] nickmc33 at hotmail dot com
[2007-04-26 14:38 UTC] tony2001@php.net
[2007-04-26 14:55 UTC] nickmc33 at hotmail dot com
[2007-04-26 14:56 UTC] nickmc33 at hotmail dot com
[2007-04-26 14:57 UTC] daveyfelton at hotmail dot com
[2007-04-26 15:04 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 08:00:02 2025 UTC |
Description: ------------ I'm finding that the crypt function produces different hashes on PHP4 and PHP5 systems when the second character of the salt is an underscore. Reproduce code: --------------- <?php print crypt("password","x_")."<br />"; print crypt("password","xx"); ?> Expected result: ---------------- The hashes generated should always be the same. Actual result: -------------- Using the test code above the first hash will be different when ran using PHP 5.2.1 and PHP 4.4.4, but the second hash will always be the same.