|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52849 GNU MP invalid version match
Submitted: 2010-09-15 10:40 UTC Modified: 2010-09-15 12:52 UTC
From: jariberg at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: GNU MP related
PHP Version: 5.3.3 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 2 = ?
Subscribe to this entry?

 [2010-09-15 10:40 UTC] jariberg at gmail dot com
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:


Correct code:

>= 5))


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-15 10:44 UTC] jariberg at gmail dot com
-Summary: Invalid version match +Summary: GMP extension has invalid version match
 [2010-09-15 10:44 UTC] jariberg at gmail dot com
Changed summary text
 [2010-09-15 10:44 UTC]
-Summary: GMP extension has invalid version match +Summary: Invalid version match -Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2010-09-15 12:51 UTC]
Automatic comment from SVN on behalf of aharvey
Log: Fix bug #52849 (GNU MP invalid version match).
 [2010-09-15 12:52 UTC]
-Summary: Invalid version match +Summary: GNU MP invalid version match -Status: Assigned +Status: Closed
 [2010-09-15 12:52 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 15:03:37 2021 UTC