PHP 4.0 Bug #8238: crypt() fails
| From: | max at the-triumvirate dot net | Date: | Wed, 13 Dec 2000 19:11:14 +0000 |
| Subject: | PHP 4.0 Bug #8238: crypt() fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41208@lists.php.net to get a copy of this message | ||
From: max@the-triumvirate.net
Operating system: linux 2.2.18 (RH6.2)
PHP version: 4.0 Latest CVS (13/12/2000)
PHP Bug Type: *Configuration Issues
Bug description: crypt() fails
When php is linked with openssl (specifically the -lcrypto library) crypt() fails to use the MD5
(12char $1$...$ salts) algorith and is only able to return DES crypted strings.
The configure command used to build php is:
PROG_SENDMAIL=/usr/local/sbin/sendmail \
CPPFLAGS="-I/usr/local/devel/gd/include \
-I/usr/local/security/openssl/include \
-I/usr/local/devel/zlib/include \
-I/usr/local/devel/libpng/include \
-I/usr/local/devel/gdbm/include" \
LIBS="-L/usr/local/devel/gd/lib \
-L/usr/local/security/openssl/lib \
-L/usr/local/devel/zlib/lib \
-L/usr/local/devel/libpng/lib \
-L/usr/local/devel/gdbm/lib \
-L/usr/local/support/flex/lib" \
./configure \
--prefix=/usr/local/services/apache-1.3.14 \
--with-config-file-path=/usr/local/services/apache-1.3.14/conf \
--with-apache=../apache-1.3.14 \
--with-gnu-ld \
--with-exec-dir=/usr/local/services/apache-1.3.14/exec \
--with-mysql=/usr/local/services/mysql \
--with-imap=/usr/local/devel/c-client \
--with-gdbm=/usr/local/devel/gdbm \
--with-zlib=/usr/local/devel/zlib \
--with-gd=/usr/local/devel/gd \
--with-jpeg-dir=/usr/local/devel/jpeg \
--with-png-dir=/usr/local/devel/libpng \
--with-zlib-dir=/usr/local/devel/zlib \
--with-gettext=/usr/local/devel/gettext \
--with-ldap=/usr/local/services/openldap \
--with-imap-ssl \
--enable-sockets \
--enable-ftp \
--enable-trans-sid \
--enable-track-vars \
--enable-url-includes
Removing -L.../openssl/lib and -I.../openssl/include allows for MD5 crypted strings.
--
Edit Bug report at: http://bugs.php.net/?id=8238&edit=1