Bug #11892 Updated: crypt gone without a trace
| From: | sniper@php.net | Date: | Tue, 31 Jul 2001 07:47:41 +0000 |
| Subject: | Bug #11892 Updated: crypt gone without a trace | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61615@lists.php.net to get a copy of this message | ||
ID: 11892
Updated by: sniper
Reported By: msopacua@idg.nl
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.
http://snaps.php.net/
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-07-30 20:19:58] msopacua@idg.nl
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] 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