patch #1731280 Avoid negative exponent in gmp_pow(), thanks to anosek
This commit is contained in:
@@ -89,6 +89,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
||||
- RFE #1714760 Obey ShowCreateDb on the Databases tab
|
||||
- patch #1733762 Typo in message "INSERT DELAY", thanks to Victor Volkov
|
||||
- patch #1730171 Dead message strLanguageFileNotFound, thanks to Victor Volkov
|
||||
- patch #1731280 Avoid negative exponent in gmp_pow(), thanks to anosek
|
||||
|
||||
2.10.1.0 (2007-04-23)
|
||||
=====================
|
||||
|
@@ -50,7 +50,7 @@ function PMA_pow($base, $exp, $use_function = false)
|
||||
$pow = bcpow($base, $exp);
|
||||
break;
|
||||
case 'gmp_pow' :
|
||||
$pow = gmp_strval(gmp_pow($base, $exp));
|
||||
$pow = gmp_strval($exp >= 0 ? gmp_pow($base, $exp) : 0);
|
||||
break;
|
||||
case 'pow' :
|
||||
$base = (float) $base;
|
||||
|
Reference in New Issue
Block a user