|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11892 crypt gone without a trace
Submitted: 2001-07-04 19:26 UTC Modified: 2001-07-31 03:47 UTC
From: msopacua at idg dot nl Assigned:
Status: Closed Package: *Encryption and hash functions
PHP Version: 4.0.6 OS: BSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: msopacua at idg dot nl
New email:
PHP Version: OS:


 [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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 20:19 UTC] msopacua at idg dot 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-31 03:47 UTC]
This has been fixed already. Thanks anyway.


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Dec 05 07:04:49 2022 UTC