php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] sniper@php.net
This has been fixed already. Thanks anyway. 
http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 19:01:30 2024 UTC