[Solar-talk] RE: Hash failure
Paul M Jones
pmjones at paul-m-jones.com
Tue Apr 29 08:39:30 CDT 2008
On Apr 28, 2008, at 16:23 , Kilbride, James P. wrote:
> As a note folks:
>
> PHP Version 5.2.1
>
> So I don't think it's a version issue.
>
>> Anybody else getting this kind of error when trying to use the sql
>> authentication adapter?
>>
>> Fatal error: Call to undefined function hash() in /usr/local/Zend/
>> Core/share/pear/Solar/Solar/Auth/Adapter/Sql.php on line 111
>>
>> It's like it doesn't recognize the built in hash function for php.
>> Does that function not exist in zend core? Anybody seen something
>> similar to this before?
>>
Well that's unexpected. Maybe it's that it does not exist in Zend
Core? I find that hard to believe, but still, that's very weird.
If you need to, you can copy the code of Solar_Auth_Adapter_Sql to
your own Vendor_Auth_Adapter_Sql (and rename the class), then modify
the new class to use md5() instead of hash('md5'), and use that new
class as your auth adapter. That way you can keep going with Solar
updates and still have your own adapter that works with Zend core.
-- pmj
More information about the Solar-talk
mailing list