Edit report at http://bugs.php.net/bug.php?id=52849&edit=1

 ID:                 52849
 Updated by:         ahar...@php.net
 Reported by:        jariberg at gmail dot com
-Summary:            GMP extension has invalid version match
+Summary:            Invalid version match
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            GNU MP related
 Operating System:   All
 PHP Version:        5.3.3
-Assigned To:        
+Assigned To:        aharvey
 Block user comment: N



Previous Comments:
------------------------------------------------------------------------
[2010-09-15 10:44:23] jariberg at gmail dot com

Changed summary text

------------------------------------------------------------------------
[2010-09-15 10:40:47] jariberg at gmail dot com

Description:
------------
in PHP's ext/gmp/gmp.c file the GNU_MP version match is invalid:



The current GNU MP version match only takes into account if the
installed GMP 

version is < 5.0.



Original code:



__GNU_MP_VERSION >= 4 && __GNU_MP_VERSION_MINOR >= 2





Correct code:



(((__GNU_MP_VERSION >= 4) && (__GNU_MP_VERSION_MINOR >= 2)) ||
(__GNU_MP_VERSION 

>= 5))









------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52849&edit=1

Reply via email to