Bug #15769: php-4.0 crypt("abc") != php-4.1 crypt("abc")

From: Date: Thu, 28 Feb 2002 00:53:57 +0000
Subject: Bug #15769: php-4.0 crypt("abc") != php-4.1 crypt("abc")
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1226@lists.php.net to get a copy of this message
From: php@8304.ch Operating system: linux PHP version: 4.1.1 PHP Bug Type: *Encryption and hash functions Bug description: php-4.0 crypt("abc") != php-4.1 crypt("abc") On the same system after upgrade, the result of crypt with only one arguments has another format: before (php 4.0.6) it was the standard 13 chars string, and now this md5-like hash is comming: "$1$ngOfu9A.$AoUUzzXjwxQiqKq7c2wDt1"... Shouldn't the default behaviour of crypt() stay the same on a specific system ? This way it breaks a lots of customers scripts on the web server on upgrade, and this is *very* annoying. (no, I can't tell all people: rewrite all your scripts and use 2 args with the crypt command). Isn't there a way to tell at compliation time: crypt() defaults to DES? Regards, Olivier -- Edit bug report at http://bugs.php.net/?id=15769&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15769&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15769&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15769&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15769&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15769&r=support Expected behavior: http://bugs.php.net/fix.php?id=15769&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15769&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15769&r=submittedtwice

« previous php.bugs (#1226) next »