crypt() broken w/php + Apache2 + OpenSSL?
| From: | Don MacAskill | Date: | Sat, 05 Oct 2002 22:01:28 +0000 |
| Subject: | crypt() broken w/php + Apache2 + OpenSSL? | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8677@lists.php.net to get a copy of this message | ||
PHP's crypt() function doesn't seem to return MD5 results, even when
using an MD5 salt, when it's used in conjunction with Apache2 (2.0.43)
and OpenSSL (0.9.6g). Instead, it always returns a DES result. FYI,
CRYPT_MD5 = 1 and CRYPT_SALT_LENGTH = 12.
Apache 1.3.x and the same versions of PHP and OpenSSL work fine. Apache
2 compiled without '--enable-ssl' also works fine. PHP standalone works
fine.
I've also tried other versions of OpenSSL (0.9.6b) and PHP (4.2.2,
4.3.0-dev) and Apache2 (2.0.42). No luck.
Does anyone know what might be causing this? Is there a workaround or a
fix?
Thanks!
Don