PHP 4.0 Bug #2245 Updated: crypt and substr output
| From: | Bug Database | Date: | Mon, 06 Sep 1999 07:25:06 +0000 |
| Subject: | PHP 4.0 Bug #2245 Updated: crypt and substr output | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10601@lists.php.net to get a copy of this message | ||
ID: 2245
User Update by: mattias@umc.se
Status: Open
Bug Type: Misbehaving function
Description: crypt and substr output
Lines 1 and 3 generate different output, though it should be the same.
Line 1 generates different output from time to time, so the problem might
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
Full Bug description available at: http://bugs.php.net/version4/?id=2245