Mantis - Quercus
Viewing Issue Advanced Details
3513 minor always 05-14-09 11:41 08-27-09 11:41
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.2  
0003513: PHP-style hash algorithm names not supported
<?php
$x = hash('sha256', 'abcdefghijklmnop', true);

Complains that "sha256" is an unknown algorithm. HashModule.java has a mapping of PHP-style to Java-style algorithm names but the mapping is never actually used anywhere. Patch to start using it is attached.
 patch.txt [^] (1,302 bytes) 05-14-09 11:41
 patchv2.txt [^] (1,678 bytes) 05-14-09 11:53

Notes
(0004018)
koreth   
05-14-09 11:53   
Patch wasn't quite right. Updated version attached.
(0004185)
nam   
08-27-09 11:41   
php/530d