PHP 4.0 Bug #2245: crypt and substr output
| From: | mattias at umc dot se | Date: | Mon, 06 Sep 1999 07:20:57 +0000 |
| Subject: | PHP 4.0 Bug #2245: crypt and substr output | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10600@lists.php.net to get a copy of this message | ||
From: mattias@umc.se
Operating system: FreeBSD 3.1
PHP version: 4.0 Beta 2
PHP Bug Type: Misbehaving function
Bug description: crypt and substr output
Lines 1 and 3 generate different output. Seems like it should be the same.
Line 1 generates different output from time to time, so the problem should be in the interaction
between the crypt() and substr() function.
-- code --
1 print crypt("olalala",substr("olalala",0,2));
2 print "<br>";
3 print crypt("olalala","ol");
4 print "<br>";
5 printf ("%s",substr("olalala",0,2));
?>
-- output --
$1$ol@ª$.3S/EAX3UwfsQraYbrFTL1
$1$ol¿ï@ª$D5moWZdAKwlH8S2JXDYQ9.
ol