From b39f6f6fbf0edcec906a4e4af57bc60687ecbaff Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 10 Jun 2007 19:47:14 +0000 Subject: [PATCH] patch #1731280 Avoid negative exponent in gmp_pow(), thanks to anosek --- ChangeLog | 1 + libraries/common.lib.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 04fe51fd7..6e9668257 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,7 @@ $HeadURL$ - 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) ===================== diff --git a/libraries/common.lib.php b/libraries/common.lib.php index b706cc5ae..3c3c36442 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -492,7 +492,7 @@ if (!defined('PMA_MINIMUM_COMMON')) { $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;