ID: 11892
Updated by: sniper
Old Status: Open
Status: Closed
Bug Type: *Encryption and hash functions
Operating System: BSD
PHP Version: 4.0.6
New Comment:

This has been fixed already. Thanks anyway.


Previous Comments:

[2001-07-30 20:19:58] [EMAIL PROTECTED]

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.


[2001-07-04 19:26:14] [EMAIL PROTECTED]

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

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to