php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joho at webbplatsen dot se
New email:
PHP Version: OS:

 

 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-26 11:18 UTC] sander@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC