| 
                                                        @@ -199,9 +199,9 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    199
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    199
                                                                                                                                                                                                 | 
                                                                         return $this->addMod($a, $modulus);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    200
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    200
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    201
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    201
                                                                                                                                                                                                 | 
                                                                     } catch (Exception $e) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    202
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -            throw new BCMathException("Caught the following exception in BC::inv(): " . $e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    202
                                                                                                                                                                                                 | 
                                                            +            throw new BCMathException("Caught the following exception in BC::inv(): ".$e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    203
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    203
                                                                                                                                                                                                 | 
                                                                     } catch (Error $e) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    204
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -            throw new BCMathException("Fatal error in BC::inv(): " . $e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    204
                                                                                                                                                                                                 | 
                                                            +            throw new BCMathException("Fatal error in BC::inv(): ".$e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    205
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    205
                                                                                                                                                                                                 | 
                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    206
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    206
                                                                                                                                                                                                 | 
                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    207
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    207
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -225,9 +225,9 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    225
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    225
                                                                                                                                                                                                 | 
                                                                         }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    226
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    226
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    227
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    227
                                                                                                                                                                                                 | 
                                                                     } catch (Exception $e) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    228
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -            throw new BCMathException("Caught the following exception in BC::coprime(): " . $e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    228
                                                                                                                                                                                                 | 
                                                            +            throw new BCMathException("Caught the following exception in BC::coprime(): ".$e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    229
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    229
                                                                                                                                                                                                 | 
                                                                     } catch (Error $e) { | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    230
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -            throw new BCMathException("Fatal error in BC::coprime(): " . $e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    230
                                                                                                                                                                                                 | 
                                                            +            throw new BCMathException("Fatal error in BC::coprime(): ".$e->getMessage(), 0, $e); | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    231
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    231
                                                                                                                                                                                                 | 
                                                                     }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    232
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    232
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    233
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    233
                                                                                                                                                                                                 | 
                                                                     return (bccomp($a, '1') == 0) ? true : false;  | 
                                                        
                                                                                                                                                        
                                                         | 
                                                        @@ -295,7 +295,7 @@  discard block  | 
                                                    
                                                    
                                                         | 
                                                         | 
                                                         block discarded – undo  | 
                                                    
                                                                                                                                                                                                                    
                                                            | 
                                                                                                                                    295
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    295
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    296
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    296
                                                                                                                                                                                                 | 
                                                                     list($remain, $last) = array(bcdiv(bcsub($dec, $last), '16'), bcmod($dec, '16'));  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    297
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    297
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    298
                                                                                                                                                                                                 | 
                                                            
                                                                                                                             | 
                                                            -        return ($remain == 0) ? dechex($last) : $this->convertDecToHex($remain) . dechex($last);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                             | 
                                                            
                                                                                                                                    298
                                                                                                                                                                                                 | 
                                                            +        return ($remain == 0) ? dechex($last) : $this->convertDecToHex($remain).dechex($last);  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    299
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    299
                                                                                                                                                                                                 | 
                                                                 }  | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    300
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    300
                                                                                                                                                                                                 | 
                                                               | 
                                                        
                                                                                                            
                                                            | 
                                                                                                                                    301
                                                                                                                                                                                                 | 
                                                            
                                                                                                                                    301
                                                                                                                                                                                                 | 
                                                                 /**  |