note 20647 added to function.crypt

From: Date: Thu, 11 Apr 2002 09:41:07 +0000
Subject: note 20647 added to function.crypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-29099@lists.php.net to get a copy of this message
Reviewing an old source written by other person that worked well in an environment with PHP 3.x version but not worked in 4.x , I found it can be possibly changed with the length of returned string of crypt() from 20 to 34. Actually the old source defined the password field in Mysql as VARCHAR(20) and worked well, I found that the output string of crypt() in PHP 4.x is long as 34, so the comparision with the value stored in a cookie variable failed in PHP 4.x. Am I wrong? -- http://www.php.net/manual/en/function.crypt.php http://master.php.net/manage/user-notes.php?action=edit+20647 http://master.php.net/manage/user-notes.php?action=delete+20647 http://master.php.net/manage/user-notes.php?action=reject+20647

« previous php.notes (#29099) next »