#41202 [Opn->Bgs]: crypt function returns different hashes in PHP4/PHP5

From: Date: Thu, 26 Apr 2007 15:04:36 +0000
Subject: #41202 [Opn->Bgs]: crypt function returns different hashes in PHP4/PHP5
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111961@lists.php.net to get a copy of this message
ID: 41202 Updated by: tony2001@php.net Reported By: nickmc33 at hotmail dot com -Status: Open +Status: Bogus Bug Type: *Encryption and hash functions Operating System: Windows Server 2003 x64 Edition PHP Version: 5.2.1 New Comment: >This is going to cause us so many problems when we upgrade from >PHP 4 to 5 I said the crypt function has been FIXED. Now it returns the same result as on Linux. Previous Comments: ------------------------------------------------------------------------ [2007-04-26 14:57:17] daveyfelton at hotmail dot com Why on earth has this bug been marked as bogus!? Of course it's a bug! This is going to cause us so many problems when we upgrade from PHP 4 to 5, becuase all the user passwords we have stored with one way encryption based on crypt won't work anymore! ------------------------------------------------------------------------ [2007-04-26 14:56:06] nickmc33 at hotmail dot com Reopened for comment. ------------------------------------------------------------------------ [2007-04-26 14:55:28] nickmc33 at hotmail dot com Bogus? I'd imagine that this bug still exists in the latest version of PHP4 as there's no mention of a fix in subsequent updates. The bugged version of PHP that we're runnign isn't really that old (4.4.4). We're going to have to be careful when upgrading now. ------------------------------------------------------------------------ [2007-04-26 14:38:28] tony2001@php.net PHP5.2 on windows returns the same result as on PHP5 & PHP4 on Linux. So there was a problem in PHP4 on windows which eventually got fixed. ------------------------------------------------------------------------ [2007-04-26 13:53:04] nickmc33 at hotmail dot com Test results: PHP4: x_JPQON7N9.Ls xxj31ZMTZzkVA PHP5: x_961N.JoN.jw xxj31ZMTZzkVA ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41202 -- Edit this bug report at http://bugs.php.net/?id=41202&edit=1

« previous php.bugs (#111961) next »