|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-07-04 19:26 UTC] msopacua at idg dot 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 05:00:01 2025 UTC |
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.