Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

Magento Forum

   
undefined function _hash, bug in File.php
 
Raptor85
Jr. Member
 
Total Posts:  1
Joined:  2008-05-13
 

I wasn’t sure where to post this but it seems very few of us get this error (it only occurs if you set up php without adler32 support), It won’t let you complete the install complaining about the undefined hash function on line 622 in File.php being called.  There’s a bug on that line and it seems to be ignoring the earlier setting of which hash function to use and hardcoding adler32. This was downloaded from “latest stable release” just yesterday, I have a very slow connection so I haven’t checked the SVN version though.

In ./app/code/core/Zend/Cache/Backend/File.php line 622

Line Currently Reads:
$hash = hash(’adler32’, $id);

Line Should Read:
$hash = $this->_hash($id, $this->_options[’read_control_type’]);

Unless there’s some reason it shouldn’t use the “hash type” variable set earlier on this line.  Hope this helps anyone else who runs into this.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien    Privacy Policy|Terms of Service