Bug #1526: php3_crypt() always uses 2 characters salt when it
| From: | rasmus at php dot chek dot com | Date: | Fri, 11 Jun 1999 11:30:29 +0000 |
| Subject: | Bug #1526: php3_crypt() always uses 2 characters salt when it | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6817@lists.php.net to get a copy of this message | ||
called without salt
From: eiji@papanui.ddt.or.jp
From: eiji@papanui.ddt.or.jp
Operating system: FreeBSD 2.2.7R
PHP version: 3.0.9
PHP Bug Type: Other
Bug description: php3_crypt() always uses 2 characters salt when it
called without salt
php3_crypt() in crypt.c always uses 2 characters salt
when it called without salt, even if PHP3_STD_DES_CRYPT
is defined to '0' and PHP3_MD5_CRYPT is defined to
'1' in config.h.
To fix this problem, change
#ifdef PHP3_STD_DES_CRYPT
to
#if PHP3_STD_DES_CRYPT