mysql old_password함수 구현 수정. bit 연산의 오류발생을 수정함

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1943 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-16 05:31:25 +00:00
parent c399c27605
commit c6030c3c84

View file

@ -1154,7 +1154,12 @@
$nr2 += ($nr2 << 8) ^ $nr;
$add += $tmp;
}
$nr2 += 0x80000000;
$result1 = sprintf("%08lx", $nr & ((1 << 31) -1));
$result2 = sprintf("%08lx", $nr2 & ((1 << 31) -1));
if($result1 == '80000000') $nr += 0x80000000;
if($result2 == '80000000') $nr2 += 0x80000000;
return sprintf("%08lx%08lx", $nr, $nr2);
}
}