|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15732 gmp_init fails to create gmp resource
Submitted: 2002-02-26 10:35 UTC Modified: 2002-05-09 00:00 UTC
From: joho at webbplatsen dot se Assigned:
Status: No Feedback Package: *Math Functions
PHP Version: 4.1.1 OS: Linux 2.4
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
29 - 28 = ?
Subscribe to this entry?

 [2002-02-26 10:35 UTC] joho at webbplatsen dot se
I cannot get gmp_init() to return a valid resource when used as follows:

$foodoo = md5 ("1234");
$gmpres = gmp_init ("0x" . $foodoo);

This is with GMP 4.x (I just downloaded the latest source and re-built it and PHP).

I have reported this for PHP 4.1.0 as well. But that bug was apparently removed/closed due to insufficient feedback.
I cannot duplicate this bug in PHP 4.0.6.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-26 11:18 UTC]
Works fine for me (using 3.x).
Does it give a warning?
What exactly does it return? (use var_dump to find out).
 [2002-05-09 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 18:03:43 2023 UTC