2009年5月2日星期六

[fw-core] Zend_Db_Table_Abstract

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
in Zend_Db_Table_Abstract.php there is a function
"protected function _setupMetadata()" in which this line appears:

$cacheId = md5("$this->_schema.$this->_name");

My questions are:
What is the reason to md5 the cacheId?
Isn't it potentially dangerous to build the cache-ID this way?
What about the risk of md5-collisions if other modules build
their cache-IDs like this, too?

Regards
Matthias Buesing,Germany
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn8iJsACgkQu+8ZgkpYwRskvgCfa5D7QAIHsY3bMKkxq2d2RVGR
BywAoIz7Ukq9xNcK2MeP30+JQgo86GaD
=oiJ1
-----END PGP SIGNATURE-----

没有评论: