patch #1731280 Avoid negative exponent in gmp_pow(), thanks to anosek

This commit is contained in:
Marc Delisle
2007-06-10 19:47:14 +00:00
parent ed633f8813
commit b39f6f6fbf
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ $HeadURL$
- RFE #1714760 Obey ShowCreateDb on the Databases tab - RFE #1714760 Obey ShowCreateDb on the Databases tab
- patch #1733762 Typo in message "INSERT DELAY", thanks to Victor Volkov - patch #1733762 Typo in message "INSERT DELAY", thanks to Victor Volkov
- patch #1730171 Dead message strLanguageFileNotFound, 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) 2.10.1.0 (2007-04-23)
===================== =====================

View File

@@ -492,7 +492,7 @@ if (!defined('PMA_MINIMUM_COMMON')) {
$pow = bcpow($base, $exp); $pow = bcpow($base, $exp);
break; break;
case 'gmp_pow' : case 'gmp_pow' :
$pow = gmp_strval(gmp_pow($base, $exp)); $pow = gmp_strval($exp >= 0 ? gmp_pow($base, $exp) : 0);
break; break;
case 'pow' : case 'pow' :
$base = (float) $base; $base = (float) $base;