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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 - 46 = ?
Subscribe to this entry?

 
 [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 25 12:01:31 2024 UTC