Bug #11892 Updated: crypt gone without a trace

From: Date: Tue, 31 Jul 2001 00:19:58 +0000
Subject: Bug #11892 Updated: crypt gone without a trace
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-61606@lists.php.net to get a copy of this message
ID: 11892 User updated by: msopacua@idg.nl Reported By: msopacua@idg.nl Status: Open Bug Type: *Encryption and hash functions Operating System: BSD PHP Version: 4.0.6 New Comment: Crypt failes because libcrypt is searched for. This isn't necessary on BSD systems, because it's part of libc. So, this simple conftest.c below, will already work: int main() { char *pw, salt[3]; extern char *crypt(const char *, const char *); crypt(pw, salt); return 1; } please incorporate this in the configure script and set HAVE_CRYPT in main/php_config.h accordingly. People using php on these systems, simply edit main/php_config.h and change /* #undef HAVE_CRYPT */ to #define HAVE_CRYPT 1 in the appropriate place. Previous Comments: ------------------------------------------------------------------------ [2001-07-04 19:26:14] msopacua@idg.nl Any call to crypt() creates an empty string. Downgrade to 4.0.5 fixes the problem. I also tried putting the '4.0.5' crypt.c in the '4.0.6' build and recompiled after a make clean, but that didn't make a difference. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=11892&edit=1

« previous php.dev (#61606) next »