ZF-5187: Zend_File_Transfer_Adapter_Abstract::getHash() doesn't recognise hashing algos

Issue Type: Bug Created: 2008-12-08T16:56:23.000+0000 Last Updated: 2008-12-21T05:03:28.000+0000 Status: Resolved Fix version(s): - 1.7.2 (23/Dec/08)

Reporter: Mathias Seiler ( Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: - ZF-5303



On line 1067 in the file Zend/File/Transfer/Adapter/Abstract.php the method checks, if the hashing algorithm is present on the system by doing a lookup on "hash_algos()".

It does this lookup by the array key (a number) and not by its value (which is the name of the hash).

I think this method never works this way. The line should be something like.

<pre class="literal">
if (!(in_array($hash, $algorithms))) { 

Tell me if I'm wrong.


Posted by Thomas Weidner (thomas) on 2008-12-09T01:21:18.000+0000

Fixed with r13111

Posted by Mathias Seiler ( on 2008-12-09T01:24:33.000+0000

Thanks man :)

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.