Re: Re: PHP 4.0 Bug #6812 Updated: crypt() function does not honour salt. Always return the same value.

From: Date: Wed, 18 Oct 2000 23:12:48 +0000
Subject: Re: Re: PHP 4.0 Bug #6812 Updated: crypt() function does not honour salt. Always return the same value.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35471@lists.php.net to get a copy of this message
On Wed, 18 Oct 2000, Andi Gutmans wrote: >I can't remember. >Anyone else remember? > >Andi I tried this script with latest CVS: <?php $orgstr="abc123"; $cryptstr=crypt($orgstr); echo "orgstr=$orgstr, cryptstr=$cryptstr<p>"; echo "Salt length=".CRYPT_SALT_LENGTH."<p>"; ?> This is either documentation problem (as it clearly says: if no salt -> automatic salt) or real bug in crypt(). --Jani >> >>But, their is another problem in that the automtic generated salt, i.e if >> >>you use just crypt($myString) >> >>have changed semantics between 4.0.1 and 4.0.2. No salt at all seems to be >> >>applied. >> >>(I have some old stuff that works with 4.0.1 but stopped working with 4.0.2 >> >>and this seemed >> >>to be the cause.)

« previous php.dev (#35471) next »