ID: 11892
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
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] [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 http://bugs.php.net/?id=11892&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
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