|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-04-28 16:53 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 02:00:01 2025 UTC |
I was comparing results from 2 crypt() functions with slightly different arguments.. Both of them returned the same results: 1)Here's the script: <? //for the record $code1= crypt('peanut','butter'); //for user input $code2= crypt($a,$b); //display echo "code1: $code1 <br>code2: $code2"; if ($code1 == $code2){ echo "<br>OK"; } ?> 2)Here's the link to the script on my server: //this should result to a match http://teaconcepts.net/test.php?a=peanut&b=butter //this shouldnt result to a match, but did http://teaconcepts.net/test.php?a=peanut&b=butterasdasdaa (or whatever you add after "butter") 3)Here's my php info http://teaconcepts.net/info.php Hope this helps the PHP community! Sincerely Tea J