Bug #3002: crypt unrecognized

From: Date: Sat, 18 Dec 1999 22:49:04 +0000
Subject: Bug #3002: crypt unrecognized
Groups: php.dev 
Request: Send a blank email to php-dev+get-13826@lists.php.net to get a copy of this message
From: leon@leonatkinson.com Operating system: Windows NT4 & 98 PHP version: 3.0.12 PHP Bug Type: Other Bug description: crypt unrecognized 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.

« previous php.dev (#13826) next »