Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.0a3

Bug #17072 bc math warning's in bcpowmod not emulated
Submitted: 2010-02-07 02:24 UTC
From: mckinzey Assigned:
Status: Wont fix Package: PHP_Compat (version CVS)
PHP Version: 5.3.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2010-02-07 02:24 UTC] mckinzey (John McKinzey)
Description: ------------ Normally, when there's a dot in one of bcpowmod's parameters, you get a "bc math warning: non-zerio scale in whatever". The PHP_Compat version, however, does not do this. Test script: --------------- <?php bcpowmod('2.0', '3.0', '4.0'); Expected result: ---------------- bc math warning: non-zero scale in base bc math warning: non-zero scale in exponent bc math warning: non-zero scale in modulus

Comments

 [2010-07-27 17:57 UTC] hm2k (James Wade)
-Status: Open +Status: Analyzed
http://ideone.com/33XxD On further inspection, I believe that the error is in the bc math library. I am unable to reproduce or test for this error using any of the other functions in the bc math library.
 [2010-07-27 19:17 UTC] hm2k (James Wade)
-Status: Analyzed +Status: Wont fix
I checked the code, where the errors are produced: http://svn.php.net/viewvc/php/php-src/trunk/ext/bcmath/libbcmath/src/raisemod.c?view=markup I don't know how to calculate the n_scale value it is checking...