PHP 4.0 Bug #2245 Updated: crypt and substr output

From: Date: Mon, 06 Sep 1999 13:05:21 +0000
Subject: PHP 4.0 Bug #2245 Updated: crypt and substr output
Groups: php.dev 
Request: Send a blank email to php-dev+get-10615@lists.php.net to get a copy of this message
ID: 2245 Updated by: riffraff Reported By: mattias@umc.se Status: Open Bug Type: Misbehaving function Assigned To: Comments: You shouldn't depend on an assumption, that crypt() is able to do the standart DES-encryption. On systems (such as yours...) it seems, that DES-encryption via crypt() has been disabled and the salt is taken as a salt for MD5 encryption. You should check CRYPT_STD_DES first before actually passing a 2-character salt to a crypt function. See http://www.php.net/manual/function.crypt.php3 for more detailed explanation. Anyway, we should make the salt string be NUL-terminated properly even if it doesn't have the right length. Full Bug description available at: http://bugs.php.net/?id=2245

« previous php.dev (#10615) next »