"using standard md5() instead of hash('md5',...), as it's only a pecl extension"

This commit is contained in:
Ralf Becker 2008-05-27 20:02:56 +00:00
parent aa4e4be631
commit 2d1b53b835

View File

@ -913,7 +913,7 @@ class schema_proc
if (isset($this->max_index_length[$this->sType]) && $this->max_index_length[$this->sType] <= 32 && strlen($name) > 30 ||
strlen($name) >= 64) // even mysql has a limit here ;-)
{
$name = "i".substr(hash ('md5', $name),0,29);
$name = "i".substr(md5($name),0,29);
}
return $name;
}