Mantis - Quercus
Viewing Issue Advanced Details
4363 major always 01-26-11 13:29 01-29-11 08:20
bodhuin  
 
normal  
new 4.0.14  
open  
none    
none  
0004363: Missing log function with 2 parameters , second one as base as in the php documentation
Method log with 2 parameters is missing in the MathModule.java

This does not permit to use the tcpdf library as it is used the two parameters method log.

Notes
(0005007)
harryr   
01-28-11 09:14   
This can be achieved by doing log(v) / log(b).

The MathModule::log method can be extend to:

  private static double log(double v, double b)
  {
    return Math.log(v) / Math.log(b);
  }

(0005008)
kdecherf   
01-29-11 08:20   
Fix (tested):
https://github.com/CleverCloud/Quercus/commit/43e7aa1778266a67d2823011325b602371878e0a [^]