php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3002 crypt unrecognized
Submitted: 1999-12-18 17:49 UTC Modified: 2005-03-30 09:02 UTC
From: leon at leonatkinson dot com Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.12 OS: Windows NT4 & 98
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: leon at leonatkinson dot com
New email:
PHP Version: OS:

 

 [1999-12-18 17:49 UTC] leon at leonatkinson dot com
consider this code:

	$password = "secret";

	if(CRYPT_MD5)
	{
		$salt = "leonatkinson";
		print("Using MD5: ");
	}
	else
	{
		$salt = "cp";
		print("Using Standard DES: ");
	}

	print(crypt($password, $salt));

On a Solaris box, it appears to work.  On both an NT and a 98 box it gives me "Call to unsupported or undefined function crypt()".  Yet, CRYPT_MD5 appears to be TRUE.  I'm very nearly positive that crypt was working under Windows as recently as 3.0.6, so it looks like it disappeared.  

I also tested the same code under 4b3 and got the same results.

I'm also pretty sure MSVC has crypt, so it makes me suspect there's a bug in the makefile or in a header file.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-30 09:02 UTC] sniper@php.net
We are sorry, but we can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Of course PHP 4 will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC